diff --git a/mailpoet/lib/Automation/Engine/WordPress.php b/mailpoet/lib/Automation/Engine/WordPress.php index 948a807501..4ee9ab1e33 100644 --- a/mailpoet/lib/Automation/Engine/WordPress.php +++ b/mailpoet/lib/Automation/Engine/WordPress.php @@ -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[] */