woocommerce_settings_groups

woocommerce_settings_groups

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

See hook in core

Displaying hooks found in version: woocommerce.8.7.0

apply_filters('woocommerce_settings_groups') is found 1 times:

  • /includes/rest-api/Controllers/Version2/class-wc-rest-settings-v2-controller.php line 61
    	 * @param  WP_REST_Request $request Request data.
    	 * @return WP_Error|WP_REST_Response
    	 */
    	public function get_items( $request ) {
    		$groups = apply_filters( 'woocommerce_settings_groups', array() );
    		if ( empty( $groups ) ) {
    			return new WP_Error( 'rest_setting_groups_empty', __( 'No setting groups have been registered.', 'woocommerce' ), array( 'status' => 500 ) );
    		}
    
    		$defaults        = $this->group_defaults();
    		$filtered_groups = array();
    

See this hook used in plugins: