| Server IP : 185.252.147.100 / Your IP : 216.73.216.43 Web Server : nginx/1.27.3 System : Linux mitrofanov.ru 6.1.0-37-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.140-1 (2025-05-22) x86_64 User : mitr ( 1000) PHP Version : 8.2.29 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /www/html/auto.mitrofanov.ru/public/wp-content/plugins/acf-frontend-form-element/ |
Upload File : |
<?php
/**
* Plugin Name: Frontend Admin
* Plugin URI: https://wordpress.org/plugins/acf-frontend-form-element/
* Description: This awesome plugin allows you to easily display admin forms to the frontend of your site so your clients can easily edit content on their own from the frontend.
* Version: 3.21.6
* Author: Shabti Kaplan
* Author URI: https://www.dynamiapps.com/
* Text Domain: acf-frontend-form-element
* Domain Path: /languages/
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
if ( ! function_exists( 'feap_fs' ) ) {
function feap_fs() {
return false;
}
}
if ( ! class_exists( 'Front_End_Admin' ) ) {
/**
* Main Frontend Admin Class
*
* The main class that initiates and runs the plugin.
*
* @since 1.0.0
*/
final class Front_End_Admin {
/**
* Constructor
*
* @since 1.0.0
*
* @access public
*/
public function __construct() {
add_action( 'after_setup_theme', array( $this, 'init' ), 11 );
}
/**
* Initialize the plugin
*
* Load the plugin only after ACF is loaded.
* Checks for basic plugin requirements, if one check fail don't continue,
* If all checks have passed load the files required to run the plugin.
*
* Fired by `plugins_loaded` action hook.
*
* @since 1.0.0
*
* @access public
*/
public function init() {
if ( did_action( 'front_end_admin_pro_loaded' ) ) {
return;
}
global $fea_instance;
if ( isset( $fea_instance ) ) {
return;
}
include_once 'main/plugin.php';
$fea_instance = new \Frontend_Admin\Plugin(
[
'basename' => plugin_basename( __FILE__ ),
'plugin_dir' => plugin_dir_path( __FILE__ ),
'plugin_url' => plugin_dir_url( __FILE__ ),
'plugin' => 'Free Version',
]
);
}
}
new Front_End_Admin();
}
if ( ! function_exists( 'fea_instance' ) ) {
function fea_instance() {
global $fea_instance;
if ( ! isset( $fea_instance ) ) {
$fea_instance = new stdClass(
[
'basename' => plugin_basename( __FILE__ ),
'plugin_dir' => plugin_dir_path( __FILE__ ),
'plugin_url' => plugin_dir_url( __FILE__ ),
'plugin' => 'Free Version',
]
);
}
return $fea_instance;
}
}