apply_filters( 'learndash_content', string $content, object $post )
Filter content to be return inside div
Description #
Parameters #
- $content
-
(string) Post Content.
- $post
-
(object) WP_Post Post Object.
Source #
Examples #
Note: Extended code example below not guaranteed, you may need to consult with a developer
<?php /** * Example usage for learndash_content filter. */ add_filter( 'learndash_content', function( $content ) { // May add any custom logic using $content. // Always return $content. return $content; } );
Changelog #
Version | Description |
---|---|
2.1.0 | Introduced. |