woocommerce_admin_fields

Output admin fields.

Description

woocommerce_admin_fields( (array) $options ); 

Loops though the woocommerce options array and outputs each field.

Parameters (1)

0. $options (array)
Opens array to output

Usage

  1. if ( !function_exists( 'woocommerce_admin_fields' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/admin/wc-admin-functions.php'; 
  3.  
  4. // Opens array to output 
  5. $options = array(); 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = woocommerce_admin_fields($options); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/admin/wc-admin-functions.php  
  1. function woocommerce_admin_fields( $options ) { 
  2.  
  3. if ( ! class_exists( 'WC_Admin_Settings', false ) ) { 
  4. include( dirname( __FILE__ ) . '/class-wc-admin-settings.php' ); 
  5.  
  6. WC_Admin_Settings::output_fields( $options );