I have defined action in functions.php
like this:
add_action('pwr_search', 'pwr_search_function');
function pwr_search_function ()
{
// do something
}
but how can I run this action throught url? This do not work:
http://my_wordpress/wp-admin/?action=pwr_search
Try hooking into the
init
action instead:Also read about Actions Run During a Typical Request.