apply_filters( 'jb_is_predefined_page', $is_predefined, $post, $predefined_page_id, $slug ) → {string}
Filters the condition check if the post is predefined page.
Note: See all predefined pages slugs in JB()->config()->get( 'predefined_pages' );
Note: JobBoardWP internally uses this hook for getting integrated with multilingual plugins that make duplicates of the pages for translations.
Parameters:
Name | Type | Description |
---|---|---|
$is_predefined |
bool | Condition if the $post is the predefined page. |
$post |
WP_Post | The Post object current or passed to function. |
$predefined_page_id |
int | The predefined page ID. The value obtained from options via the page slug. |
$slug |
string | The predefined page slug. E.g. 'job-dashboard'. |
- Since:
- 1.0
- Source:
Returns:
The predefined page ID.
- Type
- string