LLMS_Post_Model::get_status_name()

Retrieve the registered Label of the post’s current status


Return Return

(string)


Top ↑

Source Source

File: includes/abstracts/abstract.llms.post.model.php

	public function get_status_name() {
		$obj = get_post_status_object( $this->get( 'status' ) );
		/**
		 * Filters the registered label of the post's current status.
		 *
		 * The dynamic portion of this hook, `$this->model_post_type`, refers to the model's post type. For example "course",
		 * "lesson", "membership", etc...
		 *
		 * @since 3.0.0
		 *
		 * @param string $label The registered label of the post's current status.
		 */
		return apply_filters( "llms_get_{$this->model_post_type}_status_name", $obj->label );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
3.0.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

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