LLMS_Template_Loader::maybe_prepare_post_content_restriction()

Maybe restrict the post content in REST requets


Return Return

(void)


Top ↑

Source Source

File: includes/class.llms.template.loader.php

	public function maybe_prepare_post_content_restriction() {
		// Fired on `setup_postdata()` see `WP_REST_Posts_Controller::prepare_item_for_response()`.
		add_action( 'the_post', array( $this, 'maybe_restrict_post_content' ), 9999, 2 );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.41.1 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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