Title: When does this plugin run?
Last modified: October 17, 2020

---

# When does this plugin run?

 *  [ChrisL](https://wordpress.org/support/users/chrslcy/)
 * (@chrslcy)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/when-does-this-plugin-run/)
 * Hi Stefano,
 * I’ve installed the plugin, added a tag to the STI settings called ‘test’. Then
   created a post with the word ‘test’ in the content, but the post did not get 
   tagged. It gets tagged when I press the ‘Rebuild post tag’ buttons, but not when
   I create or update a post.
 * Does this plugin run automatically? If so, when?
 * Thanks!
 * Chris

Viewing 3 replies - 1 through 3 (of 3 total)

 *  Plugin Author [Stefano](https://wordpress.org/support/users/ste_95/)
 * (@ste_95)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/when-does-this-plugin-run/#post-13547036)
 * Hi there,
    no, it never runs automatically (unless you use the bulk-tagging feature
   you mentioned). You are supposed to do it for every new post, using the apt box
   in the post edit page 🙂
 *  Thread Starter [ChrisL](https://wordpress.org/support/users/chrslcy/)
 * (@chrslcy)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/when-does-this-plugin-run/#post-13548334)
 * Hi Stefano,
 * Thanks for your prompt reply.
 * That’s a shame. I was trying to find an alternative to the popular [Automatic Post Tagger](https://wordpress.org/plugins/automatic-post-tagger/),
   which appears to have been abandoned.
 * I manage over forty sites for clients and each site has multiple editors so I’m
   really looking for something I can set up and leave to run in the background.
 * Is this a feature you’d consider adding to the plugin settings? And if not, can
   you suggest a save_post hook function that would run your plugin on a post when
   it’s created or updated?
 * On a separate subject, do you think there’s anything you could do to your plugin
   listing text to get it to appear in the plugin search ‘[automatic post tagger](https://wordpress.org/plugins/search/Automatic+Post+Tagger/)‘
   and other related search terms. I don’t see your plugin appearing in many of 
   the related searches I tried. You might get a lot more interest that way.
 * Thanks again,
 * Chris
 *  Plugin Author [Stefano](https://wordpress.org/support/users/ste_95/)
 * (@ste_95)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/when-does-this-plugin-run/#post-13564597)
 * > Is this a feature you’d consider adding to the plugin settings? And if not,
   > can you suggest a save_post hook function that would run your plugin on a post
   > when it’s created or updated?
 * Something like this could go into a such function, if you can craft it properly
   🙂
 *     ```
       global $sti_global_settings;
       $tags_relevances = STI_general_functions::get_tags_relevance( $sti_global_settings['plugin_settings']['tags_list'], $post->post_content );
       $to_add = array_slice( $tags_relevances, 0, $sti_global_settings['plugin_settings']['default_tags_number'] );
   
       foreach( $to_add as $tag => $relevance ) 
       	if( $relevance == 0 ) unset( $to_add[$tag] ); //don't add tags with relevance == 0
   
           	wp_set_post_tags( $single, array_keys( $to_add ), false );
       ```
   
 * > On a separate subject, do you think there’s anything you could do to your plugin
   > listing text to get it to appear in the plugin search ‘automatic post tagger‘
   > and other related search terms. I don’t see your plugin appearing in many of
   > the related searches I tried. You might get a lot more interest that way.
 * There is probably some way, I’ll look into it when I’ve got some time 🙂

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘When does this plugin run?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/smart-tag-insert_fcfcfc.svg)
 * [Smart Tag Insert](https://wordpress.org/plugins/smart-tag-insert/)
 * [Support Threads](https://wordpress.org/support/plugin/smart-tag-insert/)
 * [Active Topics](https://wordpress.org/support/plugin/smart-tag-insert/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/smart-tag-insert/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/smart-tag-insert/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Stefano](https://wordpress.org/support/users/ste_95/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/when-does-this-plugin-run/#post-13564597)
 * Status: not resolved