Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// functions.php is part of your child theme | |
function add_tags_to_post_on_save( $post_id ) { | |
// do not trigger if this is revision only | |
if ( wp_is_post_revision( $post_id ) ) {return;} | |
// get the current post title |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
available lookup methods: | |
in_array_strict | |
in_array_non_strict | |
foreach_strict | |
foreach_non_strict | |
isset | |
intersect | |
_array_search_strict |
NewerOlder