You appear to be a bot. Output may be restricted
Description
Get the settings sections for each tab Uses a static to avoid running the filters on every request to this function
Usage
$array = edd_get_registered_settings_sections();
Parameters
Returns
array Array of tabs and sections
Source
File name: easy-digital-downloads/includes/admin/settings/register-settings.php
Lines:
1 to 53 of 53
function edd_get_registered_settings_sections() { static $sections = false; if ( false !== $sections ) { return $sections; } $sections = array( 'general' => apply_filters( 'edd_settings_sections_general', array( 'main' => __( 'Store', 'easy-digital-downloads' ), 'currency' => __( 'Currency', 'easy-digital-downloads' ), 'api' => __( 'API', 'easy-digital-downloads' ), ) ), 'gateways' => apply_filters( 'edd_settings_sections_gateways', array( 'main' => __( 'Gateways', 'easy-digital-downloads' ), 'checkout' => __( 'Checkout', 'easy-digital-downloads' ), 'accounting' => __( 'Accounting', 'easy-digital-downloads' ), ) ), 'emails' => apply_filters( 'edd_settings_sections_emails', array( 'main' => __( 'General', 'easy-digital-downloads' ), 'purchase_receipts' => __( 'Purchase Receipts', 'easy-digital-downloads' ), 'sale_notifications' => __( 'New Sale Notifications', 'easy-digital-downloads' ), ) ), 'marketing' => apply_filters( 'edd_settings_sections_marketing', array( 'main' => __( 'General', 'easy-digital-downloads' ), ) ), 'styles' => apply_filters( 'edd_settings_sections_styles', array( 'main' => __( 'General', 'easy-digital-downloads' ), ) ), 'taxes' => apply_filters( 'edd_settings_sections_taxes', array( 'main' => __( 'General', 'easy-digital-downloads' ), ) ), 'extensions' => apply_filters( 'edd_settings_sections_extensions', array( 'main' => __( 'Main', 'easy-digital-downloads' ) ) ), 'licenses' => apply_filters( 'edd_settings_sections_licenses', array() ), 'misc' => apply_filters( 'edd_settings_sections_misc', array( 'main' => __( 'Miscellaneous', 'easy-digital-downloads' ), 'button_text' => __( 'Button Text', 'easy-digital-downloads' ), 'file_downloads' => __( 'File Downloads', 'easy-digital-downloads' ), 'site_terms' => __( 'Terms of Agreement', 'easy-digital-downloads' ), ) ), 'privacy' => apply_filters( 'edd_settings_section_privacy', array( 'general' => __( 'General', 'easy-digital-downloads' ), 'export_erase' => __( 'Export & Erase', 'easy-digital-downloads' ), ) ), ); $sections = apply_filters( 'edd_settings_sections', $sections ); return $sections; }