woocommerce_settings_rest_api filter-hook . WC 1.0
Usage
add_filter( 'woocommerce_settings_rest_api', 'filter_function_name_9056' ); function filter_function_name_9056( $array ){ // filter... return $array; }
- $array
- -
Where the hook is called
woocommerce_settings_rest_api
woocommerce/includes/admin/settings/class-wc-settings-advanced.php 378-399
$settings = apply_filters( 'woocommerce_settings_rest_api', array( array( 'title' => '', 'type' => 'title', 'desc' => '', 'id' => 'legacy_api_options', ), array( 'title' => __( 'Legacy API', 'woocommerce' ), 'desc' => __( 'Enable the legacy REST API', 'woocommerce' ), 'id' => 'woocommerce_api_enabled', 'type' => 'checkbox', 'default' => 'no', ), array( 'type' => 'sectionend', 'id' => 'legacy_api_options', ), ) );