Filter: jb_get_predefined_page_id

apply_filters( 'jb_get_predefined_page_id', $page_id, $slug ) → {string}

Filters the predefined page ID.

Note: See all predefined pages slugs in JB()->config()->get( 'predefined_pages' ); https://github.com/ultimatemember/jobboardwp/blob/master/includes/class-config.php#L248

Note: JobBoardWP internally uses this hook for getting integrated with multilingual plugins that make duplicates of the pages for translations.

Parameters:
Name Type Description
$page_id string

The predefined page ID. The value obtained from options.

$slug string

The predefined page slug. E.g. 'job-dashboard'.

Since:
  • 1.1.0
Source:
Returns:

The predefined page ID.

Type
string