2021-06-16 09:09:34 -04:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Cognito Forms oEmbed
|
|
|
|
*
|
|
|
|
* @package CognitoFormsOEmbed
|
|
|
|
* @author Cognito Apps
|
|
|
|
* @copyright 2021 Cognito LLC
|
|
|
|
* @license GPL-3.0-or-later
|
|
|
|
*
|
|
|
|
* @wordpress-plugin
|
|
|
|
* Plugin Name: Cognito Forms oEmbed
|
|
|
|
* Plugin URI: http://wordpress.org/plugins/cognito-forms-oembed/
|
2021-07-10 13:19:39 -04:00
|
|
|
* Description: Cognito Forms is a free online form builder that integrates seamlessly with WordPress. Create contact forms, registrations forms, surveys, and more!
|
2021-06-16 09:09:34 -04:00
|
|
|
* Version: 1.0.0
|
|
|
|
* Requires at least: 5.2
|
|
|
|
* Requires PHP: 7.2
|
|
|
|
* Author: Cognito Apps
|
|
|
|
* Author URI: https://www.cognitoforms.com
|
2021-07-10 13:19:39 -04:00
|
|
|
* Text Domain: cognito-forms-oembed
|
2021-06-16 09:09:34 -04:00
|
|
|
* License: GPL v3 or later
|
|
|
|
* License URI: http://www.gnu.org/licenses/gpl-3.0.txt
|
|
|
|
*/
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Cognito Forms oEmbed WordPress Plugin.
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
if ( !class_exists('CognitoFormsOEmbed') ) {
|
|
|
|
class CognitoFormsOEmbed {
|
2021-06-16 22:14:56 -04:00
|
|
|
public function __construct() {
|
|
|
|
wp_oembed_add_provider( '#https?://(www\.)?cognitoforms\.com/.*#i', 'https://www.cognitoforms.com/f/oembed/', true );
|
2021-06-16 09:09:34 -04:00
|
|
|
}
|
|
|
|
}
|
2021-06-16 22:14:56 -04:00
|
|
|
new CognitoFormsOEmbed;
|
2021-06-16 09:09:34 -04:00
|
|
|
}
|