Adding a tooltip above Categories postbox in Post Editor

Place this code in your functions.php theme (or child theme) file. It uses jQuery to add a new box above the Category div (<div id=”categorydiv” class=”postbox ” >). add_action( ‘admin_footer-post.php’, ‘wpse_99252_add_categories_title_attribute’ ); add_action( ‘admin_footer-post-new.php’, ‘wpse_99252_add_categories_title_attribute’ ); /** * Add a title attribute to categories box in the Post Editor. */ function wpse_99252_add_categories_title_attribute() { ?> <script … Read more

Show box only on edit post

Check the post status using get_post_status( $ID ) and then display the html code according to the status. ( i.e ) You could simply use if else condition in your php template file to display different content based on the post status. I think new posts have auto-draft status. get_post_status codex should be helpful.

editor-style.css Functionality

The correct way to enqueue an editor stylesheet is as follows: add_action( ‘after_setup_theme’, ‘generate_child_setup’ ); function generate_child_setup() { add_editor_style( ‘path/to/editor-style.css’ ); } I pulled that snippet from here: https://generatepress.com/forums/topic/how-to-call-editor-style-css-from-child-theme/#post-149083 I guess the intuitive approach for most would be to enqueue it in the admin but that wouldn’t apply it correctly. I believe add_editor_style() ensures it’s … Read more

Make substitute in all WordPress posts

There are many ways to do this here a couple: 1) You can use something like: Better search and replace plugin here: https://wordpress.org/plugins/better-search-replace/ or SAFE SEARCH AND REPLACE ON DATABASE WITH SERIALIZED DATA script here: https://interconnectit.com/products/search-and-replace-for-wordpress-databases/ Both of these with serialize the data, which is important for many themes and plugins. There is a good … Read more