trigger on ?action=my_action
-
Hi
I need to run a function on a specific url in the admin?
For ajax I do the add_action(‘wp_ajax_my_action’, ‘my_function’); And the trigger by jquery ‘action: my_action’
Can I do anything simular for a regular request and treggir the function like this?
domain.com?action=my_action
regards // johannes
- The topic ‘trigger on ?action=my_action’ is closed to new replies.