home/abhiramc/public_html/wp-content/plugins/tablepress/tablepress.php 0000644 00000010054 15021223713 0022340 0 ustar 00 set_basename( false, __FILE__ ); // @phpstan-ignore argument.type (Wrong variable type in Freemius function docblock.)
} else {
/**
* Helper function for easier Freemius SDK access.
*
* @since 2.0.0
*
* @return Freemius Freemius SDK instance.
*/
function tb_tp_fs() /* No return type declaration, due to required PHP compatibility of this file! */ {
global $tb_tp_fs;
if ( ! isset( $tb_tp_fs ) ) {
// Include Freemius SDK.
require_once __DIR__ . '/libraries/freemius/start.php';
$tb_tp_fs = fs_dynamic_init( array(
'id' => '10340',
'slug' => 'tablepress',
'type' => 'plugin',
'public_key' => 'pk_b215ca1bb4041cf43ed137ae7665b',
'is_premium' => false,
'has_addons' => false,
'has_paid_plans' => true,
'menu' => array(
'slug' => 'tablepress',
'contact' => false,
'support' => false,
'account' => false,
),
'opt_in_moderation' => array(
'new' => true,
'updates' => false,
'localhost' => false,
),
'is_live' => true,
'anonymous_mode' => TABLEPRESS_IS_PLAYGROUND_PREVIEW,
) );
}
return $tb_tp_fs;
}
// Init Freemius.
tb_tp_fs();
// Register Freemius plugin filter hooks.
require_once __DIR__ . '/controllers/freemius-filters.php';
// Signal that the SDK was initiated.
do_action( 'tb_tp_fs_loaded' );
/*
* Define certain plugin variables as constants.
*/
if ( ! defined( 'TABLEPRESS_ABSPATH' ) ) {
define( 'TABLEPRESS_ABSPATH', trailingslashit( __DIR__ ) );
}
if ( ! defined( 'TABLEPRESS__FILE__' ) ) {
define( 'TABLEPRESS__FILE__', __FILE__ );
}
if ( ! defined( 'TABLEPRESS_BASENAME' ) ) {
define( 'TABLEPRESS_BASENAME', plugin_basename( TABLEPRESS__FILE__ ) );
}
if ( ! defined( 'TABLEPRESS_JSON_OPTIONS' ) ) {
// JSON_UNESCAPED_SLASHES: Don't escape slashes, e.g. to make search/replace of URLs in the database easier.
define( 'TABLEPRESS_JSON_OPTIONS', JSON_UNESCAPED_SLASHES );
}
/*
* Check if the site environment fulfills the minimum requirements.
*/
if ( ! require_once TABLEPRESS_ABSPATH . 'controllers/environment-checks.php' ) {
return; // Exit early if the return value from the file is false.
}
/*
* Load TablePress class, which holds common functions and variables.
*/
require_once TABLEPRESS_ABSPATH . 'classes/class-tablepress.php';
/*
* Start up TablePress on WordPress's "init" action hook.
*/
add_action( 'init', array( 'TablePress', 'run' ) );
}