LLMS_REST_Memberships_Controller::get_filters_to_be_removed_for_response( LLMS_Membership $membership )

Get action/filters to be removed before preparing the item for response.


Parameters Parameters

$membership

(LLMS_Membership) (Required) Membership object.


Top ↑

Return Return

(array) Array of action/filters to be removed for response.


Top ↑

Source Source

File: libraries/lifterlms-rest/includes/server/class-llms-rest-memberships-controller.php

			'type'              => 'string',
			'validate_callback' => 'rest_validate_request_arg',
		);

		return $query_params;
	}

	/**
	 * Get action/filters to be removed before preparing the item for response.
	 *
	 * @since 1.0.0-beta.9
	 *
	 * @param LLMS_Membership $membership Membership object.
	 * @return array Array of action/filters to be removed for response.
	 */
	protected function get_filters_to_be_removed_for_response( $membership ) {

		$filters = array();

		if ( llms_blocks_is_post_migrated( $membership->get( 'id' ) ) ) {
			$filters = array(
				// hook => [callback, priority].
				'lifterlms_single_membership_after_summary' => array(
					// Membership Information.
					array(
						'callback' => 'lifterlms_template_pricing_table',
						'priority' => 10,


Top ↑

Changelog Changelog

Changelog
Version Description
1.0.0-beta.9 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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