* @return string[]|\WP_Taxonomy[] */ public function getTaxonomies(array $args = [], string $output = 'names', string $operator = 'and'): array { return get_taxonomies($args, $output, $operator); } /** * @return mixed */ public function getCommentMeta(int $commentId, string $key = '', bool $isSingle = false) { return get_comment_meta($commentId, $key, $isSingle); } /** * @param int|WP_Term|object $term * @param string $taxonomy * @param 'ARRAY_A'|'ARRAY_N'|'OBJECT' $output * @param string $filter * @return WP_Term|array|WP_Error|null */ public function getTerm($term, string $taxonomy = '', string $output = OBJECT, string $filter = 'raw') { return get_term($term, $taxonomy, $output, $filter); } /** @return \WP_Taxonomy|false */ public function getTaxonomy(string $name) { return get_taxonomy($name); } /** @return int|string */ public function currentTime(string $type, bool $gmt = false) { return current_time($type, $gmt); } /** * @param string $field * @param string|int $value * @return false|WP_User */ public function getUserBy(string $field, $value) { return get_user_by($field, $value); } }
Fatal error: Uncaught Error: Class "MailPoet\Automation\Engine\WordPress" not found in /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php:1431 Stack trace: #0 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(1675): MailPoetGenerated\FreeCachedContainer->getAPI4Service() #1 /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php(2640): MailPoetGenerated\FreeCachedContainer->getEngineService() #2 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(122): MailPoetGenerated\FreeCachedContainer->getInitializerService() #3 /htdocs/wp-content/plugins/mailpoet/vendor-prefixed/symfony/dependency-injection/Container.php(110): MailPoetVendor\Symfony\Component\DependencyInjection\Container->make('MailPoet\\Config...', 1) #4 /htdocs/wp-content/plugins/mailpoet/lib/DI/ContainerWrapper.php(39): MailPoetVendor\Symfony\Component\DependencyInjection\Container->get('MailPoet\\Config...') #5 /htdocs/wp-content/plugins/mailpoet/mailpoet_initializer.php(89): MailPoet\DI\ContainerWrapper->get('MailPoet\\Config...') #6 /htdocs/wp-content/plugins/mailpoet/mailpoet.php(194): require_once('/htdocs/wp-cont...') #7 /htdocs/wp-settings.php(526): include_once('/htdocs/wp-cont...') #8 /htdocs/wp-config.php(85): require_once('/htdocs/wp-sett...') #9 /htdocs/wp-load.php(50): require_once('/htdocs/wp-conf...') #10 /htdocs/wp-blog-header.php(13): require_once('/htdocs/wp-load...') #11 /htdocs/index.php(17): require('/htdocs/wp-blog...') #12 {main} thrown in /htdocs/wp-content/plugins/mailpoet/generated/FreeCachedContainer.php on line 1431