wpseo_enable_editor_features_(post_type)
Использование
add_filter( 'wpseo_enable_editor_features_(post_type)', 'wp_kama_wpseo_enable_editor_features_post_type_filter' ); /** * Function for `wpseo_enable_editor_features_(post_type)` filter-hook. * * @param $WPSEO_Options::get * * @return */ function wp_kama_wpseo_enable_editor_features_post_type_filter( $WPSEO_Options::get ){ // filter... return $WPSEO_Options::get; }
- $WPSEO_Options::get
- -
Где вызывается хук
wpseo_enable_editor_features_(post_type)
yoast/inc/class-wpseo-utils.php 756
return apply_filters( 'wpseo_enable_editor_features_' . $post_type, WPSEO_Options::get( 'display-metabox-pt-' . $post_type ) );