aioseo_get_post_id

aioseo_get_post_id

Hook Type: filter

See hook in core

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

apply_filters('aioseo_get_post_id') is found 1 times:

  • /app/Common/Traits/Helpers/WpContext.php line 215
    			$postId = $learnPressLesson;
    		}
    
    		// Allow other plugins to filter the post ID e.g. for a special archive page.
    		$postId = apply_filters( 'aioseo_get_post_id', $postId );
    
    		// We need to check these conditions and cannot always return get_post() because we'll return the first post on archive pages (dynamic homepage, term pages, etc.).
    		if (
    			$this->isScreenBase( 'post' ) ||
    			$postId ||
    			is_singular()