How do I deque the default stylesheet?

You did call the header twice in your page-static.php. You can remove the second call (before the_post()). If you remove the second call of the_header(), the Stylesheet should not be delivered anymore. <?php /* Template Name: Static Page */ ?> <?php wp_dequeue_style( ‘style’ ); ?> <?php get_header(‘custom’); ?> <?php the_post(); ?><!– this enables the page … Read more

How do I go straight to “Edit More Details” when clicking on an item in the media library?

From /wp-includes/script-loader.php: $scripts->add( ‘media-grid’, “/wp-includes/js/media-grid$suffix.js”, array( ‘media-editor’ ), false, 1 ); From wp-admin/upload.php: wp_enqueue_script( ‘media-grid’ ); wp_enqueue_script( ‘media’ ); wp_localize_script( ‘media-grid’, ‘_wpMediaGridSettings’, array( ‘adminUrl’ => parse_url( self_admin_url(), PHP_URL_PATH ), ) ); So, we can try to unregister the initial media-grid.js file and load our own version. This can be done via a plugin: <?php /** … Read more

How to get WordPress to accept the tag in articles (or other alternatives)

The <style> tag needs to be added to tinyMCE’s extended_valid_elements array to prevent on that tag from being stomped: function wpse211235_add_tiny_mce_before_init( $options ) { if ( ! isset( $options[‘extended_valid_elements’] ) ) { $options[‘extended_valid_elements’] = ‘style’; } else { $options[‘extended_valid_elements’] .= ‘,style’; } return $options; } add_filter( ‘tiny_mce_before_init’, ‘wpse211235_add_tiny_mce_before_init’ );

Is there a filter hook that I can use to change how taxonomy term names are displayed?

The dynamic filter “term_{$field}” is probably what you’re looking for, where the field is “name.” One approach is to have an array of names and their pseudonyms, then do a check-and-return on them so they’ll display the replacement. add_filter( ‘term_name’, function( $value ) { $terms = [ ‘old’ => ‘new’, ]; // basic example check, … Read more