Browse: Home / Classes / LearnDash_Settings_Section /

LearnDash_Settings_Section::get_all_sections_by

LearnDash_Settings_Section::get_all_sections_by( string $criteria_field = '',  string $criteria_value = '',  string $return_field = '',  string $return_key = '' )

Get the instance of our class based on the page_id


Description #


Parameters #

$criteria_field

(string) (Optional) Section field to compare.

Default value: ''

$criteria_value

(string) (Optional) Section field value to compare.

Default value: ''

$return_field

(string) (Optional) Section field to return. If empty object is returned.

Default value: ''

$return_key

(string) (Optional) Section field to user as array key for return.

Default value: ''


Return #

(array) An array of sections.


Source #

File: includes/settings/class-ld-settings-sections.php


Changelog #

Changelog
Version Description
3.6.0 Introduced.