llms_post_content_init( callable $callback = 'llms_get_post_content', integer $priority = 10 )

Initialize LifterLMS post type content filters


Description Description

This method is used to determine whether or llms_get_post_content() should automatically be added as a filter callback for the WP core the_content filter.

When working with posts on the admin panel (during course building, importing) we don’t want other plugins that may desire running apply_filters( 'the_content', $content ) to apply our plugin’s filters.


Parameters Parameters

$callback

(Optional) Callback function to be added as a callback for the filter the_content. Default 'llms_get_post_content'.

Default value: 'llms_get_post_content'

$priority

(Optional) Priority used when adding the filter. Default: 10.

Default value: 10


Top ↑

Return Return

(boolean) Returns true if content filters are added and false if not.


Top ↑

Source Source

File: includes/functions/llms-functions-content.php


			

Top ↑

Changelog Changelog

Changelog
Version Description
4.17.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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