acf/include_options_pages
Fires during initialization. Used to add JSON options pages.
Usage
add_action( 'acf/include_options_pages', 'wp_kama_acf_include_options_pages_action' );
/**
* Function for `acf/include_options_pages` action-hook.
*
* @param int $ACF_MAJOR_VERSION ACF_MAJOR_VERSION The major version of ACF.
*
* @return void
*/
function wp_kama_acf_include_options_pages_action( $ACF_MAJOR_VERSION ){
// action...
}
- $ACF_MAJOR_VERSION(int)
- ACF_MAJOR_VERSION The major version of ACF.
Changelog
| Since 6.2 | Introduced. |
Where the hook is called
acf/include_options_pages
acf/pro/acf-pro.php 128
do_action( 'acf/include_options_pages', ACF_MAJOR_VERSION );
Where the hook is used in Advanced Custom Fields PRO
acf/pro/post-types/acf-ui-options-page.php 86
add_action( 'acf/include_options_pages', array( $this, 'include_json_options_pages' ) );