LLMS_Abstract_Generator_Posts::get_default_post_status()

Retrieve the default post status for the generated set of posts


Return Return

(string)


Top ↑

Source Source

File: includes/abstracts/llms-abstract-generator-posts.php

	public function get_author_id_from_raw( $raw, $fallback_author_id = null ) {

		// If author is set, get the author id.
		if ( isset( $raw['author'] ) ) {
			$author_id = $this->get_author_id( $raw['author'] );
		}

		// Fallback to current user.
		if ( empty( $author_id ) ) {
			$author_id = ! empty( $fallback_author_id ) ? $fallback_author_id : get_current_user_id();
		}

		return $author_id;


Top ↑

Changelog Changelog

Changelog
Version Description
4.7.0 Moved from LLMS_Generators.
3.7.3
3.30.2 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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