woocommerce_edit_account_form_fields
Hook where additional fields should be rendered.
Usage
add_action( 'woocommerce_edit_account_form_fields', 'wp_kama_woocommerce_edit_account_form_fields_action' ); /** * Function for `woocommerce_edit_account_form_fields` action-hook. * * @return void */ function wp_kama_woocommerce_edit_account_form_fields_action(){ // action... }
Changelog
Since 8.7.0 | Introduced. |
Where the hook is called
woocommerce_edit_account_form_fields
woocommerce/templates/myaccount/form-edit-account.php 60
do_action( 'woocommerce_edit_account_form_fields' );
Where the hook is used in WooCommerce
woocommerce/src/Blocks/Domain/Services/CheckoutFieldsFrontend.php 42
add_filter( 'woocommerce_edit_account_form_fields', array( $this, 'edit_account_form_fields' ), 10, 1 );