Add getPermalink to automation WP functions

[MAILPOET-6477]
This commit is contained in:
alex-mpoet
2025-03-06 09:37:26 +03:00
committed by Aschepikov
parent 4729f13871
commit 40e2d5c0b3

View File

@ -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[]
*/