LLMS_Post_Model::get_status_name()
Retrieve the registered Label of the post’s current status
Contents
Return Return
(string)
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 ); }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |