EditCouponPage
extends EditPostPage
in package
Tags
Table of Contents
- $entityType : string
- $postType : string
- __construct() : mixed
- enqueueScripts() : mixed
- filterPostTitlePlaceholder() : string
- getNewPostUrl() : string
- getUrl() : string
- 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
$postType
protected
string
$postType
Tags
Methods
__construct()
public
__construct(string $postType) : mixed
Parameters
- $postType : string
Tags
Return values
mixed —enqueueScripts()
public
enqueueScripts() : mixed
Tags
Return values
mixed —filterPostTitlePlaceholder()
public
filterPostTitlePlaceholder(string $title) : string
Parameters
- $title : string
Tags
Return values
string —getNewPostUrl()
public
getNewPostUrl([array<string|int, mixed> $additionalArgs = [] ]) : string
Parameters
- $additionalArgs : array<string|int, mixed> = []
-
Optional.
Tags
Return values
string —getUrl()
public
getUrl(int $postId[, array<string|int, mixed> $additionalArgs = [] ]) : string
Parameters
- $postId : int
- $additionalArgs : array<string|int, mixed> = []
-
Optional.
Tags
Return values
string —isCurrentAddNewPage()
public
isCurrentAddNewPage() : bool
Tags
Return values
bool —isCurrentEditPage()
public
isCurrentEditPage() : bool
Tags
Return values
bool —isCurrentPage()
public
isCurrentPage() : bool
Tags
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
Return values
mixed —addActions()
protected
addActions() : mixed