This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
jQuery(document).ready(function() { | |
var i18n = window.__ef_localize_custom_status; | |
jQuery('label[for=post_status]').show(); | |
jQuery('#post-status-display').show(); | |
if ( jQuery('select[name="_status"]').length == 0 ) { // not on quick edit | |
if ( current_user_can_publish_posts || ( current_status == 'publish' && current_user_can_edit_published_posts ) ) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
fb_list_authors(7, true); | |
function fb_list_authors($userlevel = 'all', $show_fullname = true) { | |
global $wpdb; | |
/* | |
all = Display all user | |
0 = subscriber | |
1 = contributor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function tell_all() { | |
global $wpdb; | |
$all_sites = $wpdb->get_col( "SELECT blog_id FROM {$wpdb->blogs} WHERE archived = FALSE" ); // Hide archived sites | |
$list = array(); | |
foreach( $all_sites as $site ) { | |
$args = array( | |
'blog_id' => $site, | |
'fields' => 'user_email', | |
'role' => 'Editor', | |
); |