code_snippets_role

code_snippets_role

Hook Type: filter

See hook in core

Displaying hooks found in version: code-snippets.2.13.3

apply_filters('code_snippets_role') is found 1 times:

  • /php/class-upgrade.php line 68
    		}
    
    		/* Custom capabilities were removed after version 2.9.5 */
    		if ( version_compare( $prev_version, '2.9.5', '<=' ) ) {
    			$role = get_role( apply_filters( 'code_snippets_role', 'administrator' ) );
    			$role->remove_cap( apply_filters( 'code_snippets_cap', 'manage_snippets' ) );
    		}
    
    		if ( false === $prev_version ) {
    			$this->create_sample_content();
    		}