• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Easy Digital Downloads a2z

Easy Digital Downloads a2z

Easy Digital Downloads a2z

  • Home
  • Plugins
  • Shortcodes
  • APIs
  • Classes
  • Files
  • Hooks
  • Sitemap
  • Blog
Home / APIs / edd_get_registered_settings_sections() – Get the settings sections for each tab Uses a static to avoid running the filters on every request to this function

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;
}
 

 View on GitHub View on Trac

Published: 26th November 2019 | Last updated: 26th January 2022

Primary Sidebar

Information

Function name: edd_get_registered_settings_sections
Plugin ref: Easy Digital Downloads
Version: 2.11.6
Sourcefile: includes/admin/settings/register-settings.php
File ref: includes/admin/settings/register-settings.php
Deprecated?: No
API Letters: E,G,R,S

Footer

Easy Digital Downloads a2z
Easy Digital Downloads a2z
Easy Digital Downloads a2z
WordPress 5.9.3
WordPress a2z
WordPress core a2z
Genesis Theme Framework a2z
Jetpack a2z
WordPress develop tests
Easy Digital Downloads a2z
WooCommerce a2z
Yoast SEO a2z
WordPress Blocks

Site:  edd.wp-a2z.org
© Copyright Easy Digital Downloads a2z 2014-2022. All rights reserved.


Website designed and developed by Herb Miller
Proudly powered by WordPress and oik plugins

  • Home
  • Blog
  • Sitemap
  • Sites