PluginProbe
WP Recipe Maker / trunk
WP Recipe Maker vtrunk
10.8.1 10.8.0 10.7.1 10.7.0 10.6.1 trunk 10.0.4 10.1.1 10.2.0 10.2.1 10.2.2 10.2.3 10.2.4 10.3.0 10.3.1 10.3.2 10.3.3 10.3.4 10.4.0 10.5.0 10.6.0 9.0.0 9.1.0 9.2.0 9.3.1 All 30 releases
wp-recipe-maker / wp-recipe-maker.php

wp-recipe-maker.php in WP Recipe Maker trunk, at wp-recipe-maker.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 1.0.0
12 * @package WP_Recipe_Maker
13 *
14 * @wordpress-plugin
15 * Plugin Name: WP Recipe Maker
16 * Plugin URI: https://bootstrapped.ventures/wp-recipe-maker/
17 * Description: The easy and user-friendly recipe plugin for everyone. Automatic JSON-LD metadata for better SEO will get you more visitors!
18 * Version: 10.8.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-recipe-maker
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-wprm-activator.php
35 */
36 function activate_wp_recipe_maker() {
37 require_once plugin_dir_path( __FILE__ ) . 'includes/class-wprm-activator.php';
38 WPRM_Activator::activate();
39 }
40
41 /**
42 * The code that runs during plugin deactivation.
43 * This action is documented in includes/class-wprm-deactivator.php
44 */
45 function deactivate_wp_recipe_maker() {
46 require_once plugin_dir_path( __FILE__ ) . 'includes/class-wprm-deactivator.php';
47 WPRM_Deactivator::deactivate();
48 }
49
50 register_activation_hook( __FILE__, 'activate_wp_recipe_maker' );
51 register_deactivation_hook( __FILE__, 'deactivate_wp_recipe_maker' );
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-recipe-maker.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 1.0.0
67 */
68 function run_wp_recipe_maker() {
69 $plugin = new WP_Recipe_Maker();
70 add_filter( 'plugin_action_links_' . plugin_basename( __FILE__ ) , array( $plugin, 'plugin_action_links' ), 1 );
71 }
72 run_wp_recipe_maker();
73