aioseo_rest_api_disable_head

aioseo_rest_api_disable_head

Hook Type: filter

See hook in core

Displaying hooks found in version: all-in-one-seo-pack.4.9.9

apply_filters('aioseo_rest_api_disable_head') is found 1 times:

  • /app/Common/RestApi/Controllers/Base.php line 78
    	 * @param  string $object The object (post type or taxonomy).
    	 * @return void
    	 */
    	protected function registerHeadFields( $object ) {
    		if ( ! apply_filters( 'aioseo_rest_api_disable_head', false, $object ) ) {
    			register_rest_field( $object, 'aioseo_head', [
    				'get_callback' => [ $this, 'getHead' ]
    			] );
    		}
    
    		if ( ! apply_filters( 'aioseo_rest_api_disable_head_json', false, $object ) ) {