@ Rick
re: Is there a way to easily do the same for the User’s Admin editing screen? WP allows them access in the top menu and the options are overwhelming for most folks. I’d love to disable it and force them to only use Form. You’d have to edit the Connections admin CSS to do the same which would get overwritten on each update meaning you’d have to add it again. It’s probably easier to use a plugin to disable the admin bar:
https://wordpress.org/plugins/admin-bar-disabler/
re: private Because the entry is private the details are private
re: Do you have an addition to the filter that would accomplish this last change? Sorry, no, not really. Who would need to set unlisted, admins only? Maybe added a capability check so admins can set public/private/unlisted will do?
function cn_force_private( $entry ) {
if ( ! current_user_can('manage_options') ) $entry->setVisibility( 'private' );
return $entry;
}
add_filter( 'cn_pre_process_add-entry', 'cn_force_private' );
add_filter( 'cn_pre_process_update-entry', 'cn_force_private' );
-
This reply was modified 11 years, 9 months ago by
Steven Zahm. Reason: Fix code typo
