Tag Info

New answers tagged

0

Try (just change the names): add_action( 'init' , 'myyy_remove' , 15 ); function myyy_remove() { remove_action('ACTION_NAME', 'my_function_name_Something' ,11); remove_action('ACTION_NAME', 'my_function_name_Another' ,11); }


0

Use the following code: <form action="action_page.php" method="post"> First name:<br> <input type="text" name="firstname" value=""> <br> Last name:<br> <input type="text" name="lastname" value=""> <br> <input type="submit" value="Submit"> </form> and in file "action_page.php" Use the following code: ...


0

I think it should be $_REQUEST['lastname']; and you can check it like: echo $_REQUEST['lastname'];


0

You can in the action_page.php use the $_POST['lastname'].


0

You are missing output part via return or echo: function gt_add_user_to_group( $order_id ) { global $woocommerce; $order = new WC_Order( $order_id ); $coupon_id = $order->get_used_coupons; $my_user_id = $order->user_id; $items = $order->get_items(); // My group id is 2. Does this need to be in quotes? $group_id = (int)2; // (int) ...


1

The earliest hook accessible from external code is muplugins_loaded. In order to use it, create a directory mu-plugins in your wp-content directory and put a PHP file into that directory. Sample code, will have side effects(!): add_action( 'muplugins_loaded', function() { print current_filter(); }); This is, of course, not "before anything else in ...


-1

use action="#" or action="<?php echo($_SERVER["PHP_SELF"]);?>" to redirect to same page


0

plugins_loaded is going to load this form much too early, even if you weren't getting errors. The form is loading before the opening <html tags. You need to select better hooks for this-- admin_notices maybe, but it is hard to tell exactly what you want. Second, you need to separate your handler: function process_wpse_194468() { if ...


0

I wrote this plugin to do what you're asking - Simply Show Hooks. It shows you where all the action and filter hooks are, inline, in order, on the page you're looking at, and all the functions that have been hooked to them. Hope this helps :)



Top 50 recent answers are included