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.2

do_action('woocommerce_settings_') is found 4 times:

  • /includes/admin/class-wc-admin-settings.php line 292
    288
    289
    290
    291
    292
    293
    294
    295
    296
    297
    298
            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
    305
    306
    307
    308
    309
    310
    311
    312
    313
    314
    // 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
    308
    309
    310
    311
    312
    313
    314
    315
    316
    317
    318
            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
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
        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: