woocommerce_update_options_<id>_<id>
The WooCommerce woocommerce update options id hook.
Description
do_action( 'woocommerce_update_options_<id>_<id>' );
Usage
- To run the hook, copy the example below.
- // run the action
- do_action( 'woocommerce_update_options_{$id}_{$id}' );
- The following example is for adding a hook callback.
- // define the woocommerce_update_options_<id>_<id> callback
- function action_woocommerce_update_options_id_id( ) {
- // make action magic happen here...
- };
- // add the action
- add_action( "woocommerce_update_options_{$id}_{$id}", 'action_woocommerce_update_options_id_id', 10, 0 );
- To remove a hook callback, use the example below.
- // remove the action
- remove_action( "woocommerce_update_options_{$id}_{$id}", 'action_woocommerce_update_options_id_id', 10, 0 );
Defined (2)
The action is defined in the following location(s).
- /includes/admin/settings/class-wc-settings-shipping.php
- do_action( 'woocommerce_update_options_' . $this->id . '_' . $method->id );
- /includes/admin/settings/class-wc-settings-emails.php
- do_action( 'woocommerce_update_options_' . $this->id . '_' . $email->id );