aioseop_add_contactmethods

The All In One SEO Pack aioseop add contactmethods function.

Description

aioseop_add_contactmethods( $contactmethods ); 

Parameters (1)

0. $contactmethods
The contactmethods.

Usage

  1. if ( !function_exists( 'aioseop_add_contactmethods' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'all-in-one-seo-pack/inc/aioseop_functions.php'; 
  3.  
  4. // The contactmethods. 
  5. $contactmethods = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = aioseop_add_contactmethods($contactmethods); 
  9.  

Defined (1)

The function is defined in the following location(s).

/inc/aioseop_functions.php  
  1. function aioseop_add_contactmethods( $contactmethods ) { 
  2. global $aioseop_options, $aioseop_modules; 
  3. if ( empty( $aioseop_options['aiosp_google_disable_profile'] ) ) { 
  4. $contactmethods['googleplus'] = __( 'Google+', 'all-in-one-seo-pack' ); 
  5. if ( ! empty( $aioseop_modules ) && is_object( $aioseop_modules ) ) { 
  6. $m = $aioseop_modules->return_module( 'All_in_One_SEO_Pack_Opengraph' ); 
  7. if ( ( $m !== false ) && is_object( $m ) ) { 
  8. if ( $m->option_isset( 'twitter_creator' ) ) { 
  9. $contactmethods['twitter'] = __( 'Twitter', 'all-in-one-seo-pack' ); 
  10. if ( $m->option_isset( 'facebook_author' ) ) { 
  11. $contactmethods['facebook'] = __( 'Facebook', 'all-in-one-seo-pack' ); 
  12.  
  13. return $contactmethods;