Add getPermalink to automation WP functions
[MAILPOET-6477]
This commit is contained in:
@ -122,6 +122,15 @@ class WordPress {
|
||||
return get_option($optionName, $default);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int|\WP_Post $post
|
||||
* @param bool $leavename
|
||||
* @return string|false
|
||||
*/
|
||||
public function getPermalink($post, bool $leavename = false) {
|
||||
return get_permalink($post, $leavename);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string[]
|
||||
*/
|
||||
|
Reference in New Issue
Block a user