Skip to content
Snippets Groups Projects
Select Git revision
  • fe1253a98a2c5d4f9e830db9d038e3fb8162543c
  • master default protected
  • fix/deprecated_functions
  • devel
  • feat/translations
  • feat/upgrade_to_pro_url
  • feat/lang
  • bugfix/require-interface
  • bugfix/require-once-error
  • feature/activation-hooks
  • feature/template-loader
  • feature/template-renderer
  • feature/plugin-activation
  • feature/hookable-object
  • feature/builder-pattern
  • 2.1.2
  • 2.1.1
  • 2.1.0
  • 2.0.0
  • 2.0.0-beta1
  • 1.4.4
  • 1.4.3
  • 1.4.2
  • 1.4.1
  • 1.4
  • 1.3.3
  • 1.3.2
  • 1.3.1
  • 1.3.0
  • 1.2.0
  • 1.1
  • 1.0
32 results

Buildable.php

Blame
  • plugin-template.php 1.48 KiB
    <?php
    /*
    	Plugin Name: WP Desk Plugin Template
    	Plugin URI: https://www.wpdesk.net/products/plugin-template/
    	Description: WP Desk Plugin Template
    	Product: WP Desk Plugin Template
    	Version: 1.0
    	Author: WP Desk
    	Author URI: https://www.wpdesk.net/
    	Text Domain: plugin-template
    	Domain Path: /languages/
    
    	Copyright 2016 WP Desk Ltd.
    
    	This program is free software; you can redistribute it and/or modify
    	it under the terms of the GNU General Public License as published by
    	the Free Software Foundation; either version 2 of the License, or
    	(at your option) any later version.
    
    	This program is distributed in the hope that it will be useful,
    	but WITHOUT ANY WARRANTY; without even the implied warranty of
    	MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    	GNU General Public License for more details.
    
    	You should have received a copy of the GNU General Public License
    	along with this program; if not, write to the Free Software
    	Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    
    */
    
    
    if ( ! defined( 'ABSPATH' ) ) {
    	exit;
    } // Exit if accessed directly
    
    require_once( dirname( __FILE__ ) . '/classes/wpdesk/class-requirement-checker.php' );
    
    $requirements_checker = new WPDesk_Requirement_Checker_1_10(
    	__FILE__,
    	'5.5',
    	'4.5',
    	'2.6.14'
    );
    $requirements_checker
    	->add_plugin_require('hello.php', 'Hello Dolly')
    	->add_php_module_require('curl' )
    	->add_php_setting_require('allow_url_fopen', 1);
    
    $requirements_checker->check_requirements_and_load_plugin_deferred();