mirror of
https://github.com/WordPress/five-for-the-future.git
synced 2025-07-10 04:25:44 +03:00
Update company to pledge, some code cleanup
This commit is contained in:
parent
697a4b2329
commit
9bf2f9dd1a
6 changed files with 157 additions and 212 deletions
|
@ -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' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue