| Server IP : 118.139.160.155 / Your IP : 216.73.217.176 Web Server : Apache System : Linux sg2plmcpnl504228.prod.sin2.secureserver.net 4.18.0-553.124.4.lve.el8.x86_64 #1 SMP Fri May 15 13:02:13 UTC 2026 x86_64 User : twll3xqyaqrh ( 9725459) PHP Version : 5.6.40 Disable Function : NONE MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/twll3xqyaqrh/public_html/Site WP/wp-content/plugins/custom-layouts/ |
Upload File : |
<?php
/**
* @wordpress-plugin
* Plugin Name: Custom Layouts - Post + Product grids made easy
* Plugin URI: https://customlayouts.com
* Description: Build a list or grid layout of any post type. Design the look of each item in the layout using our powerful drag and drop template editor.
* Version: 1.4.5
* Author: Code Amp
* Author URI: https://codeamp.com
* License: GPL-2.0+
* License URI: http://www.gnu.org/licenses/gpl-2.0.txt
* Text Domain: custom-layouts
* Domain Path: /languages
*/
// If this file is called directly, abort.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! defined( 'CUSTOM_LAYOUTS_DEBUG' ) ) {
define( 'CUSTOM_LAYOUTS_DEBUG', false );
}
if ( ! defined( 'CUSTOM_LAYOUTS_QUERY_DEBUG' ) ) {
define( 'CUSTOM_LAYOUTS_QUERY_DEBUG', false );
}
if ( ! defined( 'CUSTOM_LAYOUTS_PATH' ) ) {
define( 'CUSTOM_LAYOUTS_PATH', plugin_dir_path( __FILE__ ) );
}
/**
* The code that runs during plugin activation.
* This action is documented in includes/class-custom-layouts-activator.php
*/
function activate_custom_layouts() {
require_once plugin_dir_path( __FILE__ ) . 'includes/core/class-activator.php';
Custom_Layouts\Activator::activate();
}
/**
* The code that runs during plugin deactivation.
* This action is documented in includes/class-custom-layouts-deactivator.php
*/
function deactivate_custom_layouts() {
require_once plugin_dir_path( __FILE__ ) . 'includes/core/class-deactivator.php';
Custom_Layouts\Deactivator::deactivate();
}
register_activation_hook( __FILE__, 'activate_custom_layouts' );
register_deactivation_hook( __FILE__, 'deactivate_custom_layouts' );
/**
* The core plugin class that is used to define internationalization,
* admin-specific hooks, and public-facing site hooks.
*/
require plugin_dir_path( __FILE__ ) . 'includes/class-custom-layouts.php';
/**
* Begins execution of the plugin.
*
* Since everything within the plugin is registered via hooks,
* then kicking off the plugin from this point in the file does
* not affect the page life cycle.
*
* @since 1.0.0
*/
function run_custom_layouts() {
$plugin = new Custom_Layouts();
$plugin->run();
}
run_custom_layouts();