How to stop WordPress from changing ellipsis into a pre-composed triple-dot glyph?
Three dots are converted to the typographically correct ellipsis … in wptexturize(). You can disable it in many cases, see my plugin Disable Wptexturize.
Three dots are converted to the typographically correct ellipsis … in wptexturize(). You can disable it in many cases, see my plugin Disable Wptexturize.
foreach ( $myarray as $key => $value ) { add_filter( “plugin_filter_$key”, function () use ( $value ) { return $value; } ); } Check out the use keyword for closures.
You can simply use current_filter() WordPress function. http://codex.wordpress.org/Function_Reference/current_filter
You can use the global $wp_filter array to check for callbacks on each filter. Here is for example a code snippet that prints out all the callbacks on the the_content filter in the footer part of your theme: add_action(‘wp_footer’,function(){ global $wp_filter; printf(‘<pre>%s</pre>’,print_r( $wp_filter[‘the_content’],true)); }); The priority 10 part could look like this: [10] => Array … Read more
You can try this (untested): add_action( ‘wp_head’, function(){ // your conditions: if( is_home() || is_category() ) { // access the global SyntaxHighlighter object instantiated at ‘init’. global $SyntaxHighlighter; // remove your action hooks: remove_action( ‘wp_head’, array( $SyntaxHighlighter, ‘output_header_placeholder’ ), 15 ); remove_action( ‘wp_footer’, array( $SyntaxHighlighter, ‘maybe_output_scripts’ ), 15 ); } } ); to remove these … Read more
The filter you’re looking for is manage_edit-comments_columns. Here is a post detailing how to add custom columns to the edit comments section of the admin http://stv.whtly.com/2011/07/27/adding-custom-columns-to-the-wordpress-comments-admin-page/
WordPress doesn’t execute all the actions and filters (i.e. hooks) at the same time using some sort of priority, instead, execution order of these action and filter hooks are hard coded within WordPress core PHP files. Within WordPress source CODE, search for the following four function calls (using any text editor’s find in files feature): … Read more
You can modify screen_reader_text argument when invoking the_posts_pagination() wrapper function in your theme files: <?php the_posts_pagination( array( ‘mid_size’ => 2, ‘prev_text’ => __( ‘Back’, ‘textdomain’ ), ‘next_text’ => __( ‘Onward’, ‘textdomain’ ), ‘screen_reader_text’ => __( ‘Whatever’, ‘textdomain’ ), ) ); ?> Search for the_posts_pagination in your template files, and adjust texts as you wish.
The add_post_metadata and update_post_metadata filters are meant to allow filtering whether a specific meta data should be saved (added/updated) or not, only. The default value (of $check) is a null, and if you return anything other than exactly null (i.e. !== null), the meta data will not be saved (into the database). However, the add_metadata() … Read more
OK, so there are some occurrences of get_avatar() in your site. If you’ll take a look at docs for this function, you’ll see, that: you pass URL for default avatar image as 3rd param, you pass args as 5th param. And one of these args is: force_default (bool) (optional) Whether to always show the default … Read more