PluginProbe
TablePress – Tables in WordPress made easy / 1.12
TablePress – Tables in WordPress made easy v1.12
3.3.4 3.3.3 3.3.2 3.3.1 trunk 1.12 1.14 1.9.2 2.0.4 2.1.7 2.1.8 2.2 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.3 2.3.1 2.3.2 2.4 2.4.1 2.4.2 2.4.3 2.4.4 All 44 releases
tablepress / tablepress.php

tablepress.php in TablePress – Tables in WordPress made easy 1.12, at tablepress.php

75 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 * WordPress plugin "TablePress" main file, responsible for initiating the plugin
4 *
5 * @package TablePress
6 * @author Tobias Bäthge
7 * @version 1.12
8 *
9 *
10 * Plugin Name: TablePress
11 * Plugin URI: https://tablepress.org/
12 * Description: Embed beautiful and feature-rich tables into your posts and pages, without having to write code.
13 * Version: 1.12
14 * Requires at least: 5.3
15 * Requires PHP: 5.6.20
16 * Author: Tobias Bäthge
17 * Author URI: https://tobias.baethge.com/
18 * Author email: wordpress@tobias.baethge.com
19 * License: GPL 2
20 * Donate URI: https://tablepress.org/donate/
21 *
22 *
23 * Copyright 2012-2020 Tobias Bäthge
24 *
25 * TablePress is free software: you can redistribute it and/or modify
26 * it under the terms of the GNU General Public License, version 2, as published by
27 * the Free Software Foundation.
28 *
29 * TablePress is distributed in the hope that it will be useful,
30 * but WITHOUT ANY WARRANTY; without even the implied warranty of
31 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
32 * GNU General Public License for more details.
33 *
34 * You should have received a copy of the GNU General Public License
35 * along with WordPress. If not, see https://www.gnu.org/licenses/gpl-2.0.html.
36 */
37
38 // Prohibit direct script loading.
39 defined( 'ABSPATH' ) || die( 'No direct script access allowed!' );
40
41 // Define certain plugin variables as constants.
42 if ( ! defined( 'TABLEPRESS_ABSPATH' ) ) {
43 define( 'TABLEPRESS_ABSPATH', plugin_dir_path( __FILE__ ) );
44 }
45
46 if ( ! defined( 'TABLEPRESS__FILE__' ) ) {
47 define( 'TABLEPRESS__FILE__', __FILE__ );
48 }
49
50 if ( ! defined( 'TABLEPRESS__DIR__' ) ) {
51 define( 'TABLEPRESS__DIR__', __DIR__ );
52 }
53
54 if ( ! defined( 'TABLEPRESS_BASENAME' ) ) {
55 define( 'TABLEPRESS_BASENAME', plugin_basename( TABLEPRESS__FILE__ ) );
56 }
57
58 /*
59 * Define global JSON encoding options that TablePress uses.
60 */
61 if ( ! defined( 'TABLEPRESS_JSON_OPTIONS' ) ) {
62 $tablepress_json_options = 0;
63 $tablepress_json_options |= JSON_UNESCAPED_SLASHES; // Don't escape slashes to make search/replace of URLs in the database much easier.
64 define( 'TABLEPRESS_JSON_OPTIONS', $tablepress_json_options );
65 unset( $tablepress_json_options );
66 }
67
68 /**
69 * Load TablePress class, which holds common functions and variables.
70 */
71 require_once TABLEPRESS_ABSPATH . 'classes/class-tablepress.php';
72
73 // Start up TablePress on WordPress's "init" action hook.
74 add_action( 'init', array( 'TablePress', 'run' ) );
75