Add wp functions
[MAILPOET-2639]
This commit is contained in:
committed by
Jack Kitterhing
parent
492f30c073
commit
d667ad916e
@@ -574,6 +574,22 @@ class Functions {
|
|||||||
return plugins_api($action, $args);
|
return plugins_api($action, $args);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param int|string|array $post Optional. Post ID, title, slug, or array of such. Default empty.
|
||||||
|
* @return bool Whether the query is for an existing single post.
|
||||||
|
*/
|
||||||
|
public function isSingle($post = '') {
|
||||||
|
return is_single($post);
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @param int|string|array $page Optional. Page ID, title, slug, or array of such. Default empty.
|
||||||
|
* @return bool Whether the query is for an existing single page.
|
||||||
|
*/
|
||||||
|
public function isPage($page = '') {
|
||||||
|
return is_page($page);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $package
|
* @param string $package
|
||||||
* @param array $args
|
* @param array $args
|
||||||
|
Reference in New Issue
Block a user