New answers tagged hooks
0
votes
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 ...
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('...
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 ...
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__ . '/...
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 ...
Top 50 recent answers are included
Related Tags
hooks × 2284filters × 474
actions × 456
plugins × 297
plugin-development × 297
functions × 246
php × 186
woocommerce-offtopic × 167
custom-post-types × 101
customization × 85
posts × 83
theme-development × 73
ajax × 55
admin × 53
wp-admin × 51
login × 46
custom-field × 45
javascript × 45
block-editor × 43
menus × 40
user-registration × 39
templates × 38
images × 37
themes × 37
save-post × 37