LLMS_Abstract_Generator_Posts
Description Description
Many methods in this class were moved from LLMS_Generator
. The move has been noted on these methods and their preexisting changelogs have been preserved.
Source Source
File: includes/abstracts/llms-abstract-generator-posts.php
Changelog Changelog
Version | Description |
---|---|
4.7.0 | Introduced. |
Methods Methods
- __construct — Construct a new generator instance with data
- add_custom_value — Add a "custom" post meta data for a given post
- add_custom_values — Add custom data to a post based on the 'custom' array
- create_post — Generate a new LLMS_Post_Mdel
- create_reusable_block — Creates a reusable block
- create_user — Create a new WP_User from raw data
- format_date — Ensure raw dates are correctly formatted to create a post date
- get_author_id — Accepts raw author data and locates an existing author by email or id or creates one
- get_author_id_from_raw — Receives a raw array of course, plan, section, lesson, etc data and gets an author id
- get_default_post_status — Retrieve the default post status for the generated set of posts
- get_term_id — Get a WP Term ID for a term by taxonomy and term name
- handle_reusable_blocks — Handle importing of reusable blocks stored in post content
- increment — Increments a stat in the stats object — deprecated
- insert_resuable_block — Insert a reusable block into the database
- is_image_sideloading_enabled — Determines if image sideloading is enabled for the generator
- is_reusable_block_importing_enabled — Determines if reusable block importing is enabled generator
- load_dependencies — Load additional generator classes and other dependencies
- set_default_post_status — Configure the default post status for generated posts at runtime
- set_featured_image — Saves an image (from URL) to the media library and sets it as the featured image for a given post
- set_metadata — Set all metadata for a given post object
- sideload_image — Sideload an image from a url
- sideload_images — Sideload images found in a given post
- store_temp_id — Accepts a raw object, finds the raw id and stores it