aioseo_rest_api_disable

aioseo_rest_api_disable

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') is found 4 times:

  • /app/Common/RestApi/Controllers/Base.php line 126
    	 * @param  array  $object The object (post type or taxonomy).
    	 * @return string         The raw HEAD data.
    	 */
    	public function getHead( $object ) {
    		if ( apply_filters( 'aioseo_rest_api_disable', false, $object ) ) {
    			return '';
    		}
    
    		$this->setWpQuery( $object );
    
    		ob_start();
    
  • /app/Common/RestApi/Controllers/Base.php line 154
    	 * @param  array $object The object (post type or taxonomy).
    	 * @return array         The data (will be JSONified by the WP REST API class).
    	 */
    	public function getHeadJson( $object ) {
    		if ( apply_filters( 'aioseo_rest_api_disable', false, $object ) ) {
    			return [];
    		}
    
    		$this->setWpQuery( $object );
    
    		$keywordsInstance = new Meta\Keywords();
    
  • /app/Common/RestApi/Controllers/Base.php line 198
    	 * @param  array $object The object (post type or taxonomy).
    	 * @return string        The HTML breadcrumb.
    	 */
    	public function getBreadcrumb( $object ) {
    		if ( apply_filters( 'aioseo_rest_api_disable', false, $object ) ) {
    			return '';
    		}
    
    		$this->setWpQuery( $object );
    
    		$output = aioseo()->breadcrumbs->frontend->display( false );
    
  • /app/Common/RestApi/Controllers/Base.php line 220
    	 * @param  array $object The object (post type or taxonomy).
    	 * @return array         The crumbs (will be JSONified by the WP REST API class).
    	 */
    	public function getBreadcrumbJson( $object ) {
    		if ( apply_filters( 'aioseo_rest_api_disable', false, $object ) ) {
    			return [];
    		}
    
    		$this->setWpQuery( $object );
    
    		$data        = [];