add_action question
-
I am trying to trigger a plugin using:
add_action('edit_post', 'my_function')
and
add_action('publish_post', 'my_function')
But nothing happens. If I switch to:
add_action('wp_head', 'my_function')
The plugin executes when loading my index page just like it should. But I dont want to call the plugin every time the page is loaded just when edit or publish is called. Is this a common problem, I just can’t make it work?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘add_action question’ is closed to new replies.