Class WC_Admin_Settings

WC_Admin_Settings

Package: WooCommerce\Admin
Author: WooThemes
Located at includes/admin/class-wc-admin-settings.php

Methods summary

public static
# get_settings_pages( )

Include the settings page classes

Include the settings page classes

public static
# save( )

Save the settings

Save the settings

public static
# add_message( string $text )

Add a message

Add a message

Parameters

$text
string
$text
public static
# add_error( string $text )

Add an error

Add an error

Parameters

$text
string
$text
public static
# show_messages( )

Output messages + errors

Output messages + errors

public static
# output( )

Settings page.

Settings page.

Handles the display of the main woocommerce settings page in admin.

public static string
# get_option( mixed $option_name, mixed $default = '' )

Get a setting from the settings API.

Get a setting from the settings API.

Parameters

$option_name
mixed
$option
$default

Returns

string
public static
# output_fields( array $options )

Output admin fields.

Output admin fields.

Loops though the woocommerce options array and outputs each field.

Parameters

$options
array
$options Opens array to output
public static boolean
# save_fields( array $options )

Save admin fields.

Save admin fields.

Loops though the woocommerce options array and outputs each field.

Parameters

$options
array
$options Opens array to output

Returns

boolean
public static
# check_download_folder_protection( )

Checks which method we're using to serve downloads

Checks which method we're using to serve downloads

If using force or x-sendfile, this ensures the .htaccess is in place

Magic methods summary

WooCommerce API documentation generated by ApiGen 2.8.0