AnsPress_Admin::get_pages( array $pages, array $r )
Description #
Remove AnsPress base page from front page page select input.
Parameters #
- $pagesarray (Required) Page array.
- $rarray (Required) Arguments.
Source #
File: admin/anspress-admin.php
public static function get_pages( $pages, $r ) { if ( isset( $r['name'] ) && 'page_on_front' === $r['name'] ) { foreach ( (array) $pages as $k => $page ) { if ( ap_opt( 'base_page' ) == $page->ID ) { // phpcs:disable Universal.Operators.StrictComparisons.LooseEqual unset( $pages[ $k ] ); } } } return $pages; }
Expand full source code Collapse full source code View on GitHub: admin/anspress-admin.php:616
Add your comment