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

How to ignore posts in pre_get_posts?

What about this one? function opby_query( $query ) { if ( $query->is_main_query() ) { if ( $query->is_home() ) { $query->set(‘posts_per_page’, 15); }; if ( isset( $query->query_vars[‘ctrl_podcasts_status’] ) ) { // get main query args $subquery_args = $query->query_vars; // add tax_query filter $subquery_args[‘tax_query’] = array( array( ‘taxonomy’ => ‘category’, ‘field’ => ‘slug’, ‘terms’ => array( ‘podcast-control-daily’ … Read more