aioseop_list_pages

Adds stuff to the HTML in list_pages.

Description

aioseop_list_pages( $content ); 

Parameters (1)

0. $content
The content.

Usage

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

Defined (1)

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

/inc/aioseop_functions.php  
  1. function aioseop_list_pages( $content ) { 
  2. global $wp_version; 
  3. $matches = array(); 
  4. if ( preg_match_all( '/<li class="page_item page-item-(\d+)/i', $content, $matches ) ) { 
  5. update_postmeta_cache( array_values( $matches[1] ) ); 
  6. unset( $matches ); 
  7. if ( $wp_version >= 3.3 ) { 
  8. $pattern = '@<li class="page_item page-item-(\d+)([^\"]*)"><a href=\"([^\"]+)">@is'; 
  9. } else { 
  10. $pattern = '@<li class="page_item page-item-(\d+)([^\"]*)"><a href=\"([^\"]+)" title="([^\"]+)">@is'; 
  11.  
  12. return preg_replace_callback( $pattern, 'aioseop_filter_callback', $content ); 
  13.  
  14. return $content;