> */ public function getMuPlugins(): array { return get_mu_plugins(); } /** * @return false|mixed */ public function getSiteOption( string $option ) { return get_site_option( $option ); } /** * Returns non-negative int. * * @param mixed $maybeInt * * @return int */ public function absint( $maybeInt ): int { return absint( $maybeInt ); } public function getAdminUrl( ?int $blogId = null, string $path = '', string $scheme = 'admin' ): string { return get_admin_url( $blogId, $path, $scheme ); } public function addSubmenuPage( string $parentSlug, string $pageTitle, string $menuTitle, string $capability, string $menuSlug, callable $callback, ?int $position = null ): void { add_submenu_page( $parentSlug, $pageTitle, $menuTitle, $capability, $menuSlug, $callback, $position ); } public function addMenuPage( string $pageTitle, string $menuTitle, string $capability, string $menuSlug, callable $callback, string $iconUrl ): void { add_menu_page( $pageTitle, $menuTitle, $capability, $menuSlug, $callback, $iconUrl ); } public function addShortcode( string $tag, callable $callback ): void { add_shortcode( $tag, $callback ); } public function doShortcode( string $content ): string { return do_shortcode( $content ); } public function sanitizeEmail( string $email ): string { return sanitize_email( $email ); } public function wpKsesPost( string $content ): string { return wp_kses_post( $content ); } public function wpStripAllTags( string $content ): string { return wp_strip_all_tags( $content ); } public function enqueueEditor(): void { wp_enqueue_editor(); } public function getBlogInfo( string $show, string $filter ): string { return get_bloginfo( $show, $filter ); } /** * @param string|string[] $to * @param string $subject * @param string $message * @param string[] $headers * @param string[] $attachments */ public function wpMail( $to, string $subject, string $message, array $headers, array $attachments ): bool { return wp_mail( $to, $subject, $message, $headers, $attachments ); } public function currentTime( string $type, bool $gmt ): string { return (string) current_time( $type, $gmt ); } }