Page_List implements Registerable, Service, Conditional

Handles functionality on the Pages list table screen

Tags
author

Barn2 Plugins support@barn2.com

license

GPL-3.0

copyright

Barn2 Media Ltd

Interfaces, Classes and Traits

Registerable
Service
Conditional

Table of Contents

display_post_states()  : mixed
Add a post display state for the document library page
is_required()  : mixed
{@inheritdoc}
register()  : mixed
{@inheritdoc}
get_page_id()  : int
Returns the document page ID

Methods

display_post_states()

Add a post display state for the document library page

public display_post_states(array<string|int, mixed> $post_states, WP_Post $post) : mixed
Parameters
$post_states : array<string|int, mixed>

An array of post display states.

$post : WP_Post

The current post object.

Tags
Return values
mixed

is_required()

{@inheritdoc}

public is_required() : mixed
Tags
Return values
mixed

register()

{@inheritdoc}

public register() : mixed
Tags
Return values
mixed

get_page_id()

Returns the document page ID

private get_page_id(string $page_key) : int
Parameters
$page_key : string
Tags
Return values
int

$page_id

Search results