Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
- | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | 9:00 – 12:00 | - |
- | 13:00 – 18:00 | 13:00 – 18:00 | 13:00 – 18:00 | 14:00 – 18:00 | 13:00 – 18:00 | - |
Supporter timezone: America/Jamaica (GMT-05:00)
Ce sujet contient 0 réponses, a 1 voix.
Dernière mise à jour par larryB-3 Il y a 5 années et 5 mois.
Assisté par: Shane.
I am using this code to hide some of toolset content on a CPT from non-admins, but don't know what to add to this to have the primary content box hidden from non-admins. They don't need to see the content box.
add_action( 'admin_head', 'wpv_custom_admin_head', 20);
function wpv_custom_admin_head() {
if ( ! current_user_can( 'activtate_plugins' ) ) { // Only run if the user is an Editor or lower.
$slugs = array(
'post',
'page',
'suspension',
);
remove_meta_box( 'wpddl_template', $slugs, 'side' );
remove_meta_box( 'views_template', $slugs, 'side' );
}
}