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.


Top ↑

Return Return

(bool)


Top ↑

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;

	}


Top ↑

Changelog Changelog

Changelog
Version Description
1.4.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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