Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
LLMS_Blocks_Migrate::add_template_to_post( WP_Post $post )
Add a template to a post & save migration status in postmeta.
Parameters Parameters
- $post
-
(WP_Post) (Required) Post object.
Return Return
(bool)
Source Source
File: libraries/lifterlms-blocks/includes/class-llms-blocks-migrate.php
private function add_template_to_post( $post ) { // Update the post. if ( $this->update_post_content( $post->ID, $post->post_content . "\r\r" . $this->get_template( $post->post_type ) ) ) { // Save migration state. $this->update_migration_status( $post->ID ); return true; } return false; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
1.4.0 | Introduced. |