LLMS_REST_Posts_Controller::get_filters_to_be_removed_for_response( LLMS_Post_Model $object )

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

Parameters Parameters


(LLMS_Post_Model) (Required) LLMS_Post_Model object.

Top ↑

Return Return

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

Top ↑

Source Source

File: libraries/lifterlms-rest/includes/abstracts/class-llms-rest-posts-controller.php

	protected function get_filters_to_be_removed_for_response( $object ) {

		 * Modify the array of filters to be removed before building the response.
		 * The dynamic portion of the hook name, `$this->post_type`, refers to the post type slug.
		 * @since 1.0.0-beta.9
		 * @param array           $filters Array of filters to be removed.
		 * @param LLMS_Post_Model $object  LLMS_Post_Model object.
		return apply_filters( "llms_rest_{$this->post_type}_filters_removed_for_response", array(), $object );


Top ↑

Changelog Changelog

Version Description
1.0.0-beta.9 Removed "llms_rest_{$this->post_type}_filters_removed_for_reponse" filter hooks, "llms_rest_{$this->post_type}_filters_removed_for_response" added.
1.0.0-beta.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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