Support » Plugin: Exclude Pages » Advanced Page Manager compatibility

Viewing 2 replies - 1 through 2 (of 2 total)
  • Exclude Pages from Navigation should not affect the output of get_pages() on admin pages. It explicitly tries to avoid that and returns $pages unaltered if it detects it has been called from the admin site of WP.

    Have a look at the source if you like (round line 45):

    $bail_out = ( ( defined( 'WP_ADMIN' ) && WP_ADMIN == true ) || ( strpos( $_SERVER[ 'PHP_SELF' ], 'wp-admin' ) !== false ) );
    $bail_out = apply_filters( 'ep_admin_bail_out', $bail_out );
    if ( $bail_out ) return $pages;

    Uncategorized Creations

    (@uncategorized-creations)

    Thx. Going to check that.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Advanced Page Manager compatibility’ is closed to new replies.