aioseo_get_post_id

aioseo_get_post_id

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

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

apply_filters('aioseo_get_post_id') is found 1 times:

  • /app/Common/Traits/Helpers/WpContext.php line 215
    211
    212
    213
    214
    215
    216
    217
    218
    219
    220
    221
        $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 ||