How to set default post editor based on role?

create_function() is deprecated as of PHP 7.2.0, so you should avoid using it. Instead, use an anonymous function. Additionally, it’s better the check the current user role inside the callback function, so that the current user role is checked when the filter is applied, not when the hook is added, which could be before the … Read more

How would I go about replacing this function in my child theme located in inc/template-tags.php

You can’t replace the function, but you can substitute it: Copy the function to your child theme’s functions file. Rename the function. Modify it as needed. Find the template file that references it, such as header.php, and copy that to your child theme. In your child theme’s new template file replace the reference to the … Read more

Want to dequeue all the CSS and JS from /wp-content/uploads/xyz-folder

If you know what the names of the handles that the plugins use are, you can locate them using this code and then just use a simple wp_dequeue_script function. function wp_inspect_scripts() { global $wp_scripts; echo ‘<pre><h1>Script Handles</h1><ul>’; foreach( $wp_scripts->queue as $handle ) : echo ‘<li>’ . $handle . ‘</li>’; endforeach; echo ‘</ul></pre>’; } add_action( ‘wp_print_scripts’, … Read more