wpbdp_get_page_ids

Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.

This hook can be used to get the list of pages the plugin is used on.

Usage

add_filter( 'wpbdp_get_page_ids', 'my_custom_function' );

Parameters

  • $page_ids (array)

Examples

Flag an extra page for directories

This example will add another page to the automatic list of page ids so the plugin assets will be loaded.

add_filter( 'wpbdp_get_page_ids', 'add_another_bd_page', 10, 2 );
function add_another_bd_page( $page_ids ) {
    $page_ids[] = '25'; // add a new page id.
    return $page_ids;
}

Change Log

Added in version 5.9

Related Articles

Need Support?

Can't find the answer you're looking for?
Contact Support