PluginProbe
WP Ultimate Post Grid / 4.0.1
WP Ultimate Post Grid v4.0.1
4.1.1 trunk 1.5 1.6 1.7 1.7.1 1.7.2 1.8 1.9 2.0 2.1 2.2 2.3 2.4.0 2.5.0 2.6.0 2.7.0 2.8.0 2.8.2 3.0.0 3.3.0 3.4.0 3.5.0 3.6.0 3.7.0 All 32 releases
wp-ultimate-post-grid / wp-ultimate-post-grid.php

wp-ultimate-post-grid.php in WP Ultimate Post Grid 4.0.1, at wp-ultimate-post-grid.php

73 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The plugin bootstrap file
4 *
5 * This file is read by WordPress to generate the plugin information in the plugin
6 * admin area. This file also includes all of the dependencies used by the plugin,
7 * registers the activation and deactivation functions, and defines a function
8 * that starts the plugin.
9 *
10 * @link https://bootstrapped.ventures/
11 * @since 3.0.0
12 * @package WP_Ultimate_Post_Grid
13 *
14 * @wordpress-plugin
15 * Plugin Name: WP Ultimate Post Grid
16 * Plugin URI: https://bootstrapped.ventures/wp-ultimate-post-grid/
17 * Description: Easily create filterable responsive grids for your posts, pages or custom post types.
18 * Version: 4.0.1
19 * Author: Bootstrapped Ventures
20 * Author URI: https://bootstrapped.ventures/
21 * License: GPL-2.0+
22 * License URI: http://www.gnu.org/licenses/gpl-2.0.txt
23 * Text Domain: wp-ultimate-post-grid
24 * Domain Path: /languages
25 */
26
27 // If this file is called directly, abort.
28 if ( ! defined( 'WPINC' ) ) {
29 die;
30 }
31
32 /**
33 * The code that runs during plugin activation.
34 * This action is documented in includes/class-wpupg-activator.php
35 */
36 function activate_wp_ultimate_post_grid() {
37 require_once plugin_dir_path( __FILE__ ) . 'includes/class-wpupg-activator.php';
38 WPUPG_Activator::activate();
39 }
40
41 /**
42 * The code that runs during plugin deactivation.
43 * This action is documented in includes/class-wpupg-deactivator.php
44 */
45 function deactivate_wp_ultimate_post_grid() {
46 require_once plugin_dir_path( __FILE__ ) . 'includes/class-wpupg-deactivator.php';
47 WPUPG_Deactivator::deactivate();
48 }
49
50 register_activation_hook( __FILE__, 'activate_wp_ultimate_post_grid' );
51 register_deactivation_hook( __FILE__, 'deactivate_wp_ultimate_post_grid' );
52
53 /**
54 * The core plugin class that is used to define internationalization,
55 * admin-specific hooks, and public-facing site hooks.
56 */
57 require plugin_dir_path( __FILE__ ) . 'includes/class-wp-ultimate-post-grid.php';
58
59 /**
60 * Begins execution of the plugin.
61 *
62 * Since everything within the plugin is registered via hooks,
63 * then kicking off the plugin from this point in the file does
64 * not affect the page life cycle.
65 *
66 * @since 3.0.0
67 */
68 function run_wp_ultimate_post_grid() {
69 $plugin = new WP_Ultimate_Post_Grid();
70 add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ) , array( $plugin, 'plugin_action_links' ), 1 );
71 }
72 run_wp_ultimate_post_grid();
73