LLMS_Admin_Post_Table_Pages::post_states( array $states, obj $post )
Add state information to pages that are set as LifterLMD pages
Parameters Parameters
- $states
-
(array) (Required) array of post states
- $post
-
(obj) (Required) WP_Post object
Return Return
(array)
Source Source
File: includes/admin/post-types/post-tables/class.llms.admin.post.table.pages.php
public function post_states( $states, $post ) { if ( isset( $this->pages[ $post->ID ] ) ) { $states[] = $this->pages[ $post->ID ]; } return $states; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.0.0 | Introduced. |