Switch language

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




can_edit_network [ WordPress Function ]

can_edit_network ( $site_id )
Parameters:
  • (integer) $site_id The network/site id to check.
Defined at:



Whether or not we can edit this network from this page

By default editing of network is restricted to the Network Admin for that site_id this allows for this to be overridden

Source


<?php
function can_edit_network$site_id ) {
    global 
$wpdb;

    if (
$site_id == $wpdb->siteid )
        
$result true;
    else
        
$result false;

    return 
apply_filters'can_edit_network'$result$site_id );
}
?>

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