New answers tagged

0 votes

Rest API Hook When Post Is Requested

This one has resolved for me.:) Thank a lot @Nathan Johnson
Lee's user avatar
  • 1
0 votes

WordPress hook which triggers on post import

I checked and found none in WordPress Importer 0.8.1 fireing after all insertion of a posts have been made (terms, postmeta, comments) Solution 1: You can use the built in WordPress hook that fires ...
DrLightman's user avatar
0 votes

hook on the_excerpt

You can write your three_dots function like this: function three_dots($excerpt) { // Append the dots to the existing excerpt. $excerpt .= ' [...]'; return $excerpt; } add_filter('...
ray-happyforms's user avatar
0 votes

Creating posts with links from a txt file

I think you get errors because you create duplicated posts named as "test". Postcreator function's 1rst argument should be dynamic, hot hardcoded. When you activate the plugin the loop is ...
szoupi's user avatar
  • 1
0 votes

What is the best filter where to use register_block_type?

In the developer docs they've always used the init hook and it's always worked for me. Extracted from that source: function create_block_gutenpride_block_init() { register_block_type( __DIR__ . '/...
Jefferson's user avatar
0 votes

get_the_archive_title hook unwanted changes!

You can add a document title filter to strip out HTML tags from the <title> tag. However, note that there is already a default WordPress filter that is escaping HTML from the document title, so ...
gillux's user avatar
  • 1

Top 50 recent answers are included