| Server IP : 145.239.37.162 / Your IP : 216.73.217.81 Web Server : Apache System : Linux webm003.cluster130.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : verseaa ( 38250) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaa/www1/wp-content/plugins/transpix-common/meta-box/inc/walkers/ |
Upload File : |
<?php
/**
* Select walker select fields.
*
* @package Meta Box
*/
/**
* The select walker class.
*/
class RWMB_Walker_Select extends RWMB_Walker_Base {
/**
* Start the element output.
*
* @see Walker::start_el()
*
* @param string $output Passed by reference. Used to append additional content.
* @param object $object The data object.
* @param int $depth Depth of the item.
* @param array $args An array of additional arguments.
* @param int $current_object_id ID of the current item.
*/
public function start_el( &$output, $object, $depth = 0, $args = array(), $current_object_id = 0 ) {
$indent = str_repeat( ' ', $depth * 4 );
$output .= sprintf(
'<option value="%s" %s>%s%s</option>',
esc_attr( $object->value ),
selected( in_array( $object->value, $this->meta ), true, false ),
$indent,
esc_html( $object->label )
);
}
}