aioseop_get_pages

The All In One SEO Pack aioseop get pages function.

Description

aioseop_get_pages( $pages ); 

Parameters (1)

0. $pages
The pages.

Usage

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

Defined (1)

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

/inc/aioseop_functions.php  
  1. function aioseop_get_pages( $pages ) { 
  2. global $aioseop_get_pages_start; 
  3. if ( ! $aioseop_get_pages_start ) { 
  4. return $pages; 
  5. foreach ( $pages as $k => $v ) { 
  6. $postID = $v->ID; 
  7. $menulabel = stripslashes( get_post_meta( $postID, '_aioseop_menulabel', true ) ); 
  8. if ( $menulabel ) { 
  9. $pages[ $k ]->post_title = $menulabel; 
  10. $aioseop_get_pages_start = 0; 
  11.  
  12. return $pages;