Switch language

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




delete_blog_option [ WordPress Function ]

delete_blog_option ( $id, $key )
Parameters:
  • (int) $id The blog id
  • (string) $key The option key
Returns:
  • (bool) True on success, false on failure.
Defined at:



Delete an option for a particular blog.

Source


<?php
function delete_blog_option$id$key ) {
    
$id = (int) $id;

    
switch_to_blog($id);
    
$return delete_option$key );
    
restore_current_blog();
    if ( 
$return )
        
wp_cache_set$id '-' $key '-blog_option''''site-options' );
    return 
$return;
}
?>

Examples [ wp-snippets.com ]

Google Arama Sonuçlarý

Dahasý ...

Kullanýcý Tartýþmalarý [ wordpress.org ]

- Bulunamadý -

Yeni bir konu yaz ...

0 User Note(s)

Henüz yok. Ýlk sen ol!

Yeni Ekle ...



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