EditNoCommentsPage extends EditPostPage
in package

Tags
since
1.5.0

Table of Contents

$entityType  : string
$postType  : string
__construct()  : mixed
enqueueScripts()  : mixed
getNewPostUrl()  : string
getUrl()  : string
hideComments()  : mixed
isCurrentAddNewPage()  : bool
isCurrentEditPage()  : bool
isCurrentPage()  : bool
isCurrentSaveNewPage()  : bool
Requests "Add New" and "Edit" are handled through post.php. Method checks if this is a such save request.
onLoad()  : mixed
addActions()  : mixed

Properties

$entityType

protected string $entityType
Tags
since
1.0

$postType

protected string $postType
Tags
since
1.0

Methods

__construct()

public __construct(string $postType) : mixed
Parameters
$postType : string
Tags
since
1.0
Return values
mixed

enqueueScripts()

public enqueueScripts() : mixed
Tags
access

protected

since
1.0
Return values
mixed

getNewPostUrl()

public getNewPostUrl([array<string|int, mixed> $additionalArgs = [] ]) : string
Parameters
$additionalArgs : array<string|int, mixed> = []

Optional.

Tags
since
1.5.0
Return values
string

getUrl()

public getUrl(int $postId[, array<string|int, mixed> $additionalArgs = [] ]) : string
Parameters
$postId : int
$additionalArgs : array<string|int, mixed> = []

Optional.

Tags
since
1.5.0
Return values
string

hideComments()

public hideComments() : mixed
Tags
since
1.5.0
access

protected

Return values
mixed

isCurrentAddNewPage()

public isCurrentAddNewPage() : bool
Tags
global

string $pagenow

global

string $typenow

since
1.0
Return values
bool

isCurrentEditPage()

public isCurrentEditPage() : bool
Tags
global

string $pagenow

global

string $typenow

since
1.0
Return values
bool

isCurrentPage()

public isCurrentPage() : bool
Tags
since
1.0
Return values
bool

isCurrentSaveNewPage()

Requests "Add New" and "Edit" are handled through post.php. Method checks if this is a such save request.

public isCurrentSaveNewPage() : bool
Return values
bool

onLoad()

public onLoad() : mixed
Tags
access

protected

since
1.0
Return values
mixed

addActions()

protected addActions() : mixed
Tags
since
1.5.0
Return values
mixed

Search results