How to modify image caption in posts?
How to modify image caption in posts?
How to modify image caption in posts?
Ok, I found a solution. I’ve found the filter excerpt_more that is used to show the string shown within the more link (if theme use standard WP functions). So, to achieve this, we need to hook the excerpt_more and use a lower priority of the one used by the theme. In my example, this add_filter(‘the_title’, … Read more
Try this, it changes the core Spacer block from the Design to the Media category in the insertor: function myprefixFilterSpacerCategory(settings, name) { if (name === “core/spacer”) { // Object.assign can also be used instead of lodash.assign return lodash.assign({}, settings, { category: “media”, }); } return settings; } wp.hooks.addFilter( “blocks.registerBlockType”, “myprefix/filter-spacer-category”, myprefixFilterSpacerCategory );
add_filter( ‘the_title’ gets through this if statement twice
Customising the default wordpress search functionality
How to redirect a unique link based on login status
Update on this. I got the answer! I followed this simple code from https://goran-s.in.rs/table-of-contents-wordpress-without-plugin/ It’s working fine!
Adding link options in insert/edit link dialog window
Welcome aboard, This should be made with the PHP rewrite rule in WordPress functions, but if you don’t want to use PHP, you can use the .htaccess redirection. RewriteRule ^blog/category/(.*)$ /blog/?_tag_thoughts=$1 [R=301,NC,L] Change WordPress .htaccess code with code below # BEGIN WordPress RewriteEngine On RewriteRule .* – [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] RewriteRule ^blog/category/(.*)$ /blog/?_tag_thoughts=$1 [R=301,NC,L] RewriteBase / RewriteRule … Read more
Yes, there is a hook you can use to filter the action links: comment_row_actions. E.g. add_filter( ‘comment_row_actions’, ‘my_comment_row_actions’, 10, 2 ); function my_comment_row_actions( $actions, $comment ) { // Filter the actions by user role. $roles = (array) wp_get_current_user()->roles; if ( in_array( ‘administrator’, $roles ) ) { $actions[‘foo’] = ‘<a href=”#”>Foo action</a>’; } // Filter the … Read more