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


Top ↑

Return Return

(array)


Top ↑

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;

	}

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.