label = $label; $this->description = $description; $this->default = $default; $this->extra = $extra; $show = ! empty( $extra['show'] ) ? htmlentities( wp_json_encode( $extra['show'] ) ) : false; $hide = ! empty( $extra['hide'] ) ? htmlentities( wp_json_encode( $extra['hide'] ) ) : false; if ( $show ) { $this->condition = 'data-show="' . $show . '"'; } elseif ( $hide ) { $this->condition = 'data-hide="' . $hide . '"'; } } public function meta_value( $thepostid ) { return get_post_meta( $thepostid, $this->id, true ); } public function output( $thepostid ) { return ''; } public function save( $post_id ) { } }