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.7

apply_filters('aioseo_manage_seo') is found 4 times:

  • /app/Common/Admin/Admin.php line 679
    	 * @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
    	 *
    	 * @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
    	 * @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
    	 * @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':