public static function wp_ajax_get_embed() { $url = (string) filter_input(INPUT_POST, 'url', FILTER_SANITIZE_URL); wp_send_json_success(self::get_embed($url)); }