Update company to pledge, some code cleanup

This commit is contained in:
Corey McKrill 2019-09-30 17:04:49 -07:00
parent 697a4b2329
commit 9bf2f9dd1a
No known key found for this signature in database
GPG key ID: C2C0746F7BF17E38
6 changed files with 157 additions and 212 deletions

View file

@ -1,7 +1,7 @@
<?php
/**
* Plugin Name: Five For The Future
* Plugin URI: https://wordpress.org
* Plugin URI: https://wordpress.org/five-for-the-future/
* Description:
* Author: WordPress.org
* Author URI: https://wordpress.org
@ -9,19 +9,22 @@
*/
namespace WordPressDotOrg\FiveForTheFuture;
defined( 'WPINC' ) || die();
define( __NAMESPACE__ . '\PATH', plugin_dir_path( __FILE__ ) );
define( __NAMESPACE__ . '\URL', plugin_dir_url( __FILE__ ) );
const PREFIX = '5ftf';
add_action( 'plugins_loaded', __NAMESPACE__ . '\load' );
/**
*
*/
function load() {
require_once PATH . 'includes/company.php';
require_once PATH . 'includes/company-meta.php';
require_once PATH . 'includes/shortcodes.php';
require_once PATH . 'includes/pledge.php';
require_once PATH . 'includes/pledge-meta.php';
require_once PATH . 'includes/pledge-form.php';
require_once PATH . 'includes/shortcodes.php';
}
add_action( 'plugins_loaded', __NAMESPACE__ . '\load' );