LLMS_Settings_Memberships::get_settings()

Get settings array


Return Return

(array)


Top ↑

Source Source

File: includes/admin/settings/class.llms.settings.memberships.php

	public function get_settings() {

		return apply_filters(
			'lifterlms_membership_settings',
			array(

				array(
					'class' => 'top',
					'id'    => 'membership_general_options',
					'type'  => 'sectionstart',
				),

				array(
					'id'    => 'membership_general_options_title',
					'title' => __( 'Membership Settings', 'lifterlms' ),
					'type'  => 'title',
				),

				array(
					'class'             => 'llms-select2-post',
					'custom_attributes' => array(
						'data-allow-clear' => true,
						'data-post-type'   => 'llms_membership',
						'data-placeholder' => __( 'Select a membership', 'lifterlms' ),
					),
					'default'           => '',
					'desc'              => __( 'Only allow access to site to users with a specific membership level. Users will be able to view and purchase membership level.', 'lifterlms' ),
					'id'                => 'lifterlms_membership_required',
					'options'           => llms_make_select2_post_array( get_option( 'lifterlms_membership_required', '' ) ),
					'title'             => __( 'Restrict site by membership level', 'lifterlms' ),
					'type'              => 'select',
				),

				array(
					'id'   => 'membership_general_options',
					'type' => 'sectionend',
				),

				array(
					'class' => 'top',
					'id'    => 'membership_catalog_options',
					'type'  => 'sectionstart',
				),

				array(
					'id'    => 'membership_catalog_options_title',
					'title' => __( 'Memberships Catalog', 'lifterlms' ),
					'type'  => 'title',
				),

				array(
					'class'             => 'llms-select2-post',
					'custom_attributes' => array(
						'data-allow-clear' => true,
						'data-post-type'   => 'page',
						'data-placeholder' => __( 'Select a page', 'lifterlms' ),
					),
					'default'           => '',
					'desc'              => __( 'This page is where your visitors will find a list of all your available memberships.', 'lifterlms' ),
					'id'                => 'lifterlms_memberships_page_id',
					'options'           => llms_make_select2_post_array( get_option( 'lifterlms_memberships_page_id', '' ) ),
					'title'             => __( 'Memberships Page', 'lifterlms' ),
					'type'              => 'select',
				),

				array(
					'title'   => __( 'Memberships per page', 'lifterlms' ),
					'desc'    => __( 'To show all memberships on one page, enter -1', 'lifterlms' ),
					'id'      => 'lifterlms_memberships_per_page',
					'type'    => 'number',
					'default' => 9,
					'css'     => 'min-width:200px;',
				),

				array(
					'default' => 'menu_order',
					'desc'    => __( 'Determines the display order for items on the memberships page.', 'lifterlms' ),
					'id'      => 'lifterlms_memberships_ordering',
					'options' => array(
						'menu_order,ASC' => __( 'Order (Low to High)', 'lifterlms' ),
						'title,ASC'      => __( 'Title (A - Z)', 'lifterlms' ),
						'title,DESC'     => __( 'Title (Z - A)', 'lifterlms' ),
						'date,DESC'      => __( 'Most Recent', 'lifterlms' ),
					),
					'title'   => __( 'Memberships Sorting', 'lifterlms' ),
					'type'    => 'select',

				),

				array(
					'id'   => 'membership_catalog_options',
					'type' => 'sectionend',
				),

			)
		);
	}


Top ↑

Changelog Changelog

Changelog
Version Description
3.5.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.