meta-box
Last commit date
css
5 years ago
img
8 years ago
inc
5 years ago
js
5 years ago
meta-box.php
5 years ago
readme.txt
5 years ago
meta-box.php
32 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Plugin Name: Meta Box |
| 4 | * Plugin URI: https://metabox.io |
| 5 | * Description: Create custom meta boxes and custom fields in WordPress. |
| 6 | * Version: 5.3.8 |
| 7 | * Author: MetaBox.io |
| 8 | * Author URI: https://metabox.io |
| 9 | * License: GPL2+ |
| 10 | * Text Domain: meta-box |
| 11 | * Domain Path: /languages/ |
| 12 | * |
| 13 | * @package Meta Box |
| 14 | */ |
| 15 | |
| 16 | if ( defined( 'ABSPATH' ) && ! defined( 'RWMB_VER' ) ) { |
| 17 | register_activation_hook( __FILE__, 'rwmb_check_php_version' ); |
| 18 | |
| 19 | /** |
| 20 | * Display notice for old PHP version. |
| 21 | */ |
| 22 | function rwmb_check_php_version() { |
| 23 | if ( version_compare( phpversion(), '5.3', '<' ) ) { |
| 24 | die( esc_html__( 'Meta Box requires PHP version 5.3+. Please contact your host to upgrade.', 'meta-box' ) ); |
| 25 | } |
| 26 | } |
| 27 | |
| 28 | require_once dirname( __FILE__ ) . '/inc/loader.php'; |
| 29 | $rwmb_loader = new RWMB_Loader(); |
| 30 | $rwmb_loader->init(); |
| 31 | } |
| 32 |