Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




remove_option_whitelist [ WordPress Function ]

remove_option_whitelist ( $del_options, $options = '' )
Parameters:
  • (unknown_type) $del_options
  • (unknown_type) $options
Returns:
  • (unknown)
Defined at:



{@internal Missing Short Description}}

Source


<?php
function remove_option_whitelist$del_options$options '' ) {
    if ( 
$options == '' )
        global 
$whitelist_options;
    else
        
$whitelist_options $options;

    foreach ( 
$del_options as $page => $keys ) {
        foreach ( 
$keys as $key ) {
            if ( isset(
$whitelist_options$page ]) && is_array($whitelist_options$page ]) ) {
                
$pos array_search$key$whitelist_options$page ] );
                if ( 
$pos !== false )
                    unset( 
$whitelist_options$page ][ $pos ] );
            }
        }
    }

    return 
$whitelist_options;
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics