forked from DevinWalker/custom-functionality-plugin-example
-
Notifications
You must be signed in to change notification settings - Fork 0
/
wordimpress-plugin.php
34 lines (33 loc) · 1022 Bytes
/
wordimpress-plugin.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php
/*
Plugin Name: WordImpress Custom Functions
Plugin URI: http://wordimpress.com
Description: Custom functions for the ::client name:: website
Author: Devin Walker
Version: 1.2
Requires at least: 3.8.1
Author URI: http://imdev.in
*/
/**
* Include all necessary files
*/
//admin customizations
if ( file_exists( plugin_dir_path( __FILE__ ) . 'lib/admin-customizations.php' ) ) {
require_once( 'lib/admin-customizations.php' );
}
//metaboxes
if ( file_exists( plugin_dir_path( __FILE__ ) . 'lib/metaboxes.php' ) ) {
require_once( 'lib/metaboxes.php' );
}
//CPTs
if ( file_exists( plugin_dir_path( __FILE__ ) . 'lib/custom-post-types.php' ) ) {
require_once( 'lib/custom-post-types.php' );
}
//Taxonomies
if ( file_exists( plugin_dir_path( __FILE__ ) . 'lib/custom-taxonomies.php' ) ) {
require_once( 'lib/custom-taxonomies.php' );
}
//Required Plugins
if ( file_exists( plugin_dir_path( __FILE__ ) . 'lib/required-plugins.php' ) ) {
require_once( 'lib/required-plugins.php' );
}