notification
The WooCommerce Add Form to Product notification hook.
Description
Parameters (1)
- 0. $args (unknown)
- The args.
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'notification', $args );
- The following example is for adding a hook callback.
- // define the notification callback
- function action_notification( $args ) {
- // make action magic happen here...
- };
- // add the action
- add_action( 'notification', 'action_notification', 10, 1 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( 'notification', 'action_notification', 10, 1 );
Defined (1)
The action is defined in the following location(s).
- /woocommerce-add-form-to-product.php
- do_action( current_filter() . '_notification', $args );