![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/walla3t.corals.io/wp-content/plugins/meta-box/inc/fields/ |
<?php defined( 'ABSPATH' ) || die; /** * The custom HTML field which allows users to output any kind of content to the meta box. */ class RWMB_Custom_Html_Field extends RWMB_Field { /** * Get field HTML. * * @param mixed $meta Meta value. * @param array $field Field parameters. * * @return string */ public static function html( $meta, $field ) { $html = ! empty( $field['std'] ) ? $field['std'] : ''; if ( ! empty( $field['callback'] ) && is_callable( $field['callback'] ) ) { $html = call_user_func_array( $field['callback'], [ $meta, $field ] ); } return $html; } }