wp-china-yes/framework/fields/content/content.php
2025-01-02 10:36:40 +08:00

28 lines
583 B
PHP
Executable file

<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
/**
*
* Field: content
*
* @since 1.0.0
* @version 1.0.0
*
*/
if ( ! class_exists( 'WP_CHINA_YES_Field_content' ) ) {
class WP_CHINA_YES_Field_content extends WP_CHINA_YES_Fields {
public function __construct( $field, $value = '', $unique = '', $where = '', $parent = '' ) {
parent::__construct( $field, $value, $unique, $where, $parent );
}
public function render() {
if ( ! empty( $this->field['content'] ) ) {
echo $this->field['content'];
}
}
}
}