| 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 |
|