前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly. /** * * Field: Hidden * */ if ( ! class_exists( 'Exopite_Simple_Options_Framework_Field_hidden' ) ) { class Exopite_Simple_Options_Framework_Field_hidden extends Exopite_Simple_Options_Framework_Fields { public function __construct( $field, $value = '', $unique = '', $config = array() ) { parent::__construct( $field, $value, $unique, $config ); } public function output() { echo $this->element_before(); echo '<input type="' . $this->element_type() . '" name="' . $this->element_name() . '" value="' . $this->element_value() . '"' . $this->element_class() . $this->element_attributes() . '/>'; echo $this->element_after(); } } }