aioseo_manage_seo

aioseo_manage_seo

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

See hook in core

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

apply_filters('aioseo_manage_seo') is found 4 times:

  • /app/Common/Admin/Admin.php line 679
    675
    676
    677
    678
    679
    680
    681
    682
    683
    684
    685
    * @param  string $pageSlug The slug of the page.
     * @return string           The required capability.
     */
    public function getPageRequiredCapability( $pageSlug ) { // phpcs:disable VariableAnalysis.CodeAnalysis.VariableAnalysis.UnusedVariable
        return apply_filters( 'aioseo_manage_seo', 'aioseo_manage_seo' );
    }
     
    /**
     * Add the menu inside of WordPress.
     *
     * @since 4.0.0
  • /app/Common/Main/Main.php line 52
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    *
     * @return void
     */
    public function enqueueFrontEndAssets() {
        $canManageSeo = apply_filters( 'aioseo_manage_seo', 'aioseo_manage_seo' );
        if (
            ! is_admin_bar_showing() ||
            ! ( current_user_can( $canManageSeo ) || aioseo()->access->canManage() )
        ) {
            return;
        }
  • /app/Common/Standalone/DetailsColumn.php line 136
    132
    133
    134
    135
    136
    137
    138
    139
    140
    141
    142
    * @param  array $columns The columns we are adding ours onto.
     * @return array          The modified columns.
     */
    public function addColumn( $columns ) {
        $canManageSeo = apply_filters( 'aioseo_manage_seo', 'aioseo_manage_seo' );
        if (
            ! current_user_can( $canManageSeo ) &&
            (
                ! current_user_can( 'aioseo_page_general_settings' ) &&
                ! current_user_can( 'aioseo_page_analysis' )
            )
  • /app/Common/Utils/Addons.php line 236
    232
    233
    234
    235
    236
    237
    238
    239
    240
    241
    242
    * @param  string $sku The addon sku.
     * @return string      The required capability.
     */
    protected function getManageCapability( $sku ) {
        $capability = apply_filters( 'aioseo_manage_seo', 'aioseo_manage_seo' );
     
        switch ( $sku ) {
            case 'aioseo-image-seo':
                $capability = 'aioseo_search_appearance_settings';
                break;
            case 'aioseo-video-sitemap':