PluginProbe
Ultimate Post List / 5.2.8
Ultimate Post List v5.2.8
5.2.9 5.2.8 trunk 5.0.0 5.1.0 5.1.1 5.1.2 5.2.0 5.2.1 5.2.2 5.2.3 5.2.4 5.2.5 5.2.6 5.2.7 5.2.7.1
ultimate-post-list / ultimate-post-list.php

ultimate-post-list.php in Ultimate Post List 5.2.8, at ultimate-post-list.php

92 lines 3.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 /**
4 * @link https://www.kybernetik-services.com
5 * @since 1.0.0
6 * @package Ultimate_Post_List
7 *
8 * @wordpress-plugin
9 * Plugin Name: Ultimate Post List
10 * Plugin URI: http://wordpress.org/plugins/ultimate-post-list/
11 * Description: Make up custom-tailored preview lists of the contents easily and place them in widget areas and post contents.
12 * Version: 5.2.8
13 * Requires at least: 4.6
14 * Requires PHP: 5.2
15 * Author: Kybernetik Services
16 * Author URI: https://www.kybernetik-services.com/?utm_source=wordpress_org&utm_medium=plugin&utm_campaign=ultimate-post-list&utm_content=author
17 * License: GPL-2.0+
18 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
19 * Text Domain: ultimate-post-list
20 */
21
22 // If this file is called directly, abort.
23 if ( ! defined( 'WPINC' ) ) {
24 die;
25 }
26
27 /**
28 * The constants for this plugin
29 */
30 const UPL_NAME = 'Ultimate Post List';
31 const UPL_VERSION = '5.2.8';
32 define( 'UPL_ROOT', plugin_dir_path( __FILE__ ) );
33 define( 'UPL_URL', plugin_dir_url( __FILE__ ) );
34 define( 'UPL_ROOT_FILE', plugin_basename( __FILE__ ) );
35 const UPL_POST_TYPE = 'upl_post_list';
36 const UPL_SHORTCODE_NAME = 'ultimate_post_list';
37 const UPL_OPTION_NAME = 'ultimate_post_list_settings';
38 const UPL_CLONE_ACTION_NAME = 'clone_upl';
39 const UPL_TRANSIENT_PLUGIN_ACTIVATED = 'ultimate-post-list-plugin-activated';
40 const UPL_TRANSIENT_LIST_CLONED = 'ultimate-post-list-list-cloned';
41 define( 'UPL_CSS_FILE_PATH', dirname( __FILE__ ) . '/public/css/ultimate-post-list-public.css' );
42 define( 'UPL_CSS_FILE_URL', plugin_dir_url( __FILE__ ) . 'public/css/ultimate-post-list-public.css' );
43
44 /**
45 * Class autoload for plugin classes
46 *
47 * @param $class_name
48 */
49 function upl_autoloader( $class_name )
50 {
51 if ( false !== strpos( $class_name, 'Ultimate_Post_List' ) ) {
52 include UPL_ROOT . 'includes/class-' . $class_name . '.php';
53 }
54 }
55 spl_autoload_register('upl_autoloader');
56
57 /**
58 * The code that runs during plugin activation.
59 * This action is documented in includes/class-ultimate-post-list-activator.php
60 */
61 function activate_ultimate_post_list() {
62 Ultimate_Post_List_Activator::activate();
63 }
64
65 /**
66 * The code that runs during plugin deactivation.
67 * This action is documented in includes/class-ultimate-post-list-deactivator.php
68 */
69 function deactivate_ultimate_post_list() {
70 Ultimate_Post_List_Deactivator::deactivate();
71 }
72
73 register_activation_hook( __FILE__, 'activate_ultimate_post_list' );
74 register_deactivation_hook( __FILE__, 'deactivate_ultimate_post_list' );
75
76 /**
77 * Begins execution of the plugin.
78 *
79 * Since everything within the plugin is registered via hooks,
80 * then kicking off the plugin from this point in the file does
81 * not affect the page life cycle.
82 *
83 * @since 1.0.0
84 */
85 function run_ultimate_post_list() {
86
87 $plugin = new Ultimate_Post_List();
88 $plugin->run();
89
90 }
91 run_ultimate_post_list();
92