Create an administation subpage containing posts in a certain category

See my answer here on a similar question https://wordpress.stackexchange.com/posts/comments/401940?noredirect=1 that discusses a plugin I did that might start to meet your needs. The plugin is called Multisite Post Reader, and can be found here: https://wordpress.stackexchange.com/posts/comments/401940?noredirect=1 Comments about additional features can be posted in the plugin support page. If the plugin is not exactly what you … Read more

Admin hook after editing an image?

Unless I’ve missed something in the flow of this, It seems the mentioned WPSE answer is correct. The filter hook referenced, wp_save_image_editor_file, is applied in the wp_save_image_file() function when dealing with an instance of WP_Image_Editor class; giving access to $filename (trac link for below): * @param mixed $override Value to return instead of saving. Default … Read more

How can I create multiple different admin roles with their own capabilities

Yes it’s very easy. You’ll want to use the add_role() function to add your custom roles – https://codex.wordpress.org/Function_Reference/add_role Then you can use add_cap to add custom capabilities – https://codex.wordpress.org/Function_Reference/add_cap One important thing to mention is that both add_role and add_cap are saved to the database so they only need to run 1x so it’s good … Read more

Filter on the day of the week from timestamp

This answer may help someone who really wants to customize their filters. With PhpStorm and breakpoints I could walk through how the meta_query is constructed before posts are fetched. There are no hook points in the flow that let developers accomplish this; I’ve used a SQL-injection trick to achieve the filter. // Do advanced SQL … Read more

Add_Meta_box to custom page (formidable edit post)

Like this? <?php /* Plugin Name: Your plugin name Plugin URI: http://www.domain.com Description: Description Author: You obviously Version: 1.0 */ /** * Adds a meta box to the post editing screen */ include(‘meta_box/meta_box.php’); ?> meta_box.php <?php $post_id = $_GET[‘post’] ? $_GET[‘post’] : $_POST[‘post_ID’] ; $page_temp = get_page_template_slug( $post_id ); if ($page_temp == ‘template_name.php’) { function … Read more

How to customize WordPress dashboard for different users?

I would suggest this plugin: https://wordpress.org/plugins/adminimize/ What does this plugin do? The plugin changes the administration backend and gives you the power to assign rights on certain parts. Admins can activate/deactivate every part of the menu and even parts of the sub-menu. Meta fields can be administered separately for posts and pages. Certain parts of … Read more