aioseop_addmycolumns

Adds posttype columns.

Description

aioseop_addmycolumns(); 

Usage

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

Defined (1)

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

/inc/aioseop_functions.php  
  1. function aioseop_addmycolumns() { 
  2. global $aioseop_options, $pagenow; 
  3. $aiosp_posttypecolumns = Array(); 
  4. if ( ! empty( $aioseop_options ) && ! empty( $aioseop_options['aiosp_posttypecolumns'] ) ) { 
  5. $aiosp_posttypecolumns = $aioseop_options['aiosp_posttypecolumns']; 
  6. if ( ! empty( $pagenow ) && ( $pagenow === 'upload.php' ) ) { 
  7. $post_type = 'attachment'; 
  8. } elseif ( ! isset( $_REQUEST['post_type'] ) ) { 
  9. $post_type = 'post'; 
  10. } else { 
  11. $post_type = $_REQUEST['post_type']; 
  12.  
  13. if ( is_array( $aiosp_posttypecolumns ) && in_array( $post_type, $aiosp_posttypecolumns ) ) { 
  14. add_action( 'admin_head', 'aioseop_admin_head' ); 
  15. if ( $post_type === 'page' ) { 
  16. } elseif ( $post_type === 'attachment' ) { 
  17. } else { 
  18. if ( $post_type === 'attachment' ) { 
  19. } elseif ( is_post_type_hierarchical( $post_type ) ) { 
  20. } else {