sureforms.php
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin Name: SureForms |
| 4 | * Plugin URI: https://www.brainstormforce.com |
| 5 | * Description: A simple yet powerful way to create modern forms for your website. |
| 6 | * Author: SureForms |
| 7 | * Author URI: https://brainstormforce.com/ |
| 8 | * Version: 0.0.6 |
| 9 | * License: GPLv2 or later |
| 10 | * Text Domain: sureforms |
| 11 | * |
| 12 | * @package sureforms |
| 13 | */ |
| 14 | |
| 15 | if ( ! defined( 'ABSPATH' ) ) { |
| 16 | exit; // Exit if accessed directly. |
| 17 | } |
| 18 | |
| 19 | /** |
| 20 | * Set constants |
| 21 | */ |
| 22 | define( 'SRFM_FILE', __FILE__ ); |
| 23 | define( 'SRFM_BASENAME', plugin_basename( SRFM_FILE ) ); |
| 24 | define( 'SRFM_DIR', plugin_dir_path( SRFM_FILE ) ); |
| 25 | define( 'SRFM_URL', plugins_url( '/', SRFM_FILE ) ); |
| 26 | define( 'SRFM_VER', '0.0.6' ); |
| 27 | define( 'SRFM_SLUG', 'srfm' ); |
| 28 | // ------ ADDITIONAL CONSTANTS ------- // |
| 29 | define( 'SRFM_FORMS_POST_TYPE', 'sureforms_form' ); |
| 30 | define( 'SRFM_ENTRIES_POST_TYPE', 'sureforms_entry' ); |
| 31 | |
| 32 | require_once 'plugin-loader.php'; |
| 33 |