403Webshell
Server IP : 185.252.147.100  /  Your IP : 216.73.217.33
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/epauto.ru/wordpress/wp-content/plugins/acf-extended/includes/fields/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /www/html/epauto.ru/wordpress/wp-content/plugins/acf-extended/includes/fields/field-hidden.php
<?php

if(!defined('ABSPATH')){
    exit;
}

if(!class_exists('acfe_field_hidden')):

class acfe_field_hidden extends acf_field{
    
    /**
     * initialize
     */
    function initialize(){
        
        $this->name = 'acfe_hidden';
        $this->label = __('Hidden', 'acfe');
        $this->category = 'basic';
        $this->defaults = array(
            'default_value' => ''
        );
        
    }
    
    
    /**
     * prepare_field
     *
     * @param $field
     *
     * @return array
     */
    function prepare_field($field){
        
        $field['wrapper']['class'] = 'acf-hidden';
        
        return $field;
        
    }
    
    
    /**
     * render_field
     *
     * @param $field
     */
    function render_field($field){
    
        acf_hidden_input(array(
            'name'  => $field['name'],
            'value' => $field['value'],
        ));
        
    }
    
    
    /**
     * render_field_settings
     *
     * @param $field
     */
    function render_field_settings($field){
        
        // default_value
        acf_render_field_setting($field, array(
            'label'         => __('Value', 'acf'),
            'instructions'  => __('Default value in the hidden input', 'acf'),
            'type'          => 'text',
            'name'          => 'default_value',
        ));
        
    }
    
}

// initialize
acf_register_field_type('acfe_field_hidden');

endif;

Youez - 2016 - github.com/yon3zu
LinuXploit