Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
immurement
/
stats
/
plugins
/
head-footer-code
:
head-footer-code.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?php /** * Head & Footer Code plugin for WordPress * * @link https://urosevic.net/ * @since 1.0.0 * @package Head_Footer_Code * * Plugin Name: Head & Footer Code * Plugin URI: https://urosevic.net/wordpress/plugins/head-footer-code/ * Description: Easy add site-wide, category or article specific custom code before the closing <strong></head></strong> and <strong></body></strong> or after opening <strong><body></strong> HTML tag. * Version: 1.3.3 * Author: Aleksandar Urošević * Author URI: https://urosevic.net/ * License: GPLv3 * License URI: https://www.gnu.org/licenses/gpl-3.0.txt * Text Domain: head-footer-code * Domain Path: /languages * Requires at elast: 4.9 * Tested up to: 6.3 * Requires PHP: 5.6 */ // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } if ( ! function_exists( 'get_plugin_data' ) ) { require_once( ABSPATH . 'wp-admin/includes/plugin.php' ); } $plugin_data = get_plugin_data( __FILE__ ); define( 'HFC_VER', $plugin_data['Version'] ); define( 'HFC_VER_DB', '8' ); define( 'HFC_PLUGIN_FILE', plugin_basename( __FILE__ ) ); define( 'HFC_PLUGIN_NAME', $plugin_data['Name'] ); define( 'HFC_PLUGIN_SLUG', 'head-footer-code' ); define( 'HFC_FILE', __FILE__ ); define( 'HFC_DIR', dirname( __FILE__ ) ); define( 'HFC_DIR_INC', HFC_DIR . '/inc/' ); define( 'HFC_URL', plugin_dir_url( __FILE__ ) ); // Load files. require_once 'inc/helpers.php';