Limit post view and management to custom user meta information

You have to filter user_has_cap and compare the user meta fields. The following code is based on this answer and not tested. add_filter( ‘user_has_cap’, ‘wpse_99393_filter_cap’, 10, 3 ); /** * Allow editing others posts only for editors from the same school. * Administrators can still edit those posts. * * @wp-hook user_has_cap * @param array … Read more

Limit length of headline in Editor

You could add this function : add_action(‘publish_post’, ‘wpse_105297_max_char’); function wpse_105297_max_char() { global $post; $title = $post->post_title; if (strlen($title) >= 100 ) wp_die( “The max lenght is 100 for title” ); } This will prevent users from using too much longer titles.

WordPress editor, change code wrap (bbpress?)

put this code in functions.php add_action(‘wp_footer’,’ravs_codeTag_fix’); function ravs_codeTag_fix(){ if ( bbp_use_wp_editor() ) : ?> <script> jQuery(document).ready( function() { /* Use <code> instead of backticks for the Code button in the editor */ if ( typeof( edButtons ) !== ‘undefined’ ) { edButtons[110] = new QTags.TagButton( ‘code’, ‘code’, ‘<code>’, ‘</code>’, ‘c’ ); QTags._buttonsInit(); } }); </script> … Read more

Contributor post to be reviewed and published by only one editor

You don’t say how you save the editor -> contributor associations, I assume you store it in a user meta field with key ‘assigned_contrib’ where you save an array of contributors user id. First off all, hide posts to other editors using pre_get_posts hook: add_action(‘pre_get_posts’, ‘hide_posts_to_editors’); function hide_posts_to_editors( $query ) { if ( is_admin() && … Read more