woocommerce_settings_

woocommerce_settings_

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: action
See hook in action

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

do_action('woocommerce_settings_') is found 4 times:

  • /includes/admin/class-wc-admin-settings.php line 292
    							echo '</div>';
    						}
    						echo '<table class="form-table">' . "\n\n";
    						if ( ! empty( $value['id'] ) ) {
    							do_action( 'woocommerce_settings_' . sanitize_title( $value['id'] ) );
    						}
    						break;
    
    					case 'info':
    						?><tr class="<?php echo esc_attr( $value&#91;'row_class'&#93; ); ?>">
    							<th scope="row" class="titledesc"><?php echo esc_html( $value&#91;'title'&#93; ); ?></th>
    
  • /includes/admin/class-wc-admin-settings.php line 308
     
    					// Section Ends.
    					case 'sectionend':
    						if ( ! empty( $value['id'] ) ) {
    							do_action( 'woocommerce_settings_' . sanitize_title( $value['id'] ) . '_end' );
    						}
    						echo '</table>';
    						if ( ! empty( $value['id'] ) ) {
    							do_action( 'woocommerce_settings_' . sanitize_title( $value['id'] ) . '_after' );
    						}
    						break;
    
  • /includes/admin/class-wc-admin-settings.php line 312
    							do_action( 'woocommerce_settings_' . sanitize_title( $value['id'] ) . '_end' );
    						}
    						echo '</table>';
    						if ( ! empty( $value['id'] ) ) {
    							do_action( 'woocommerce_settings_' . sanitize_title( $value['id'] ) . '_after' );
    						}
    						break;
    
    					// Standard text inputs and subtypes like 'number'.
    					case 'text':
    					case 'password':
    
  • /includes/admin/views/html-admin-settings.php line 40
    			do_action( 'woocommerce_sections_' . $current_tab );
    
    			self::show_messages();
    
    			do_action( 'woocommerce_settings_' . $current_tab );
    			do_action( 'woocommerce_settings_tabs_' . $current_tab ); // @deprecated 3.4.0 hook.
    		?>
    		<p class="submit">
    			<?php if ( empty( $GLOBALS&#91;'hide_save_button'&#93; ) ) : ?>
    				<button name="save" disabled class="woocommerce-save-button components-button is-primary" type="submit" value="<?php esc_attr_e( 'Save changes', 'woocommerce' ); ?>"><?php esc_html_e( 'Save changes', 'woocommerce' ); ?></button>
    			<?php endif; ?>
    

See this hook used in plugins: