: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* @package AdvancedAds\Framework\Form
* @author Advanced Ads <info@wpadvancedads.com>
namespace AdvancedAds\Framework\Form;
defined( 'ABSPATH' ) || exit;
class Field_Radio extends Field {
public function render() {
if ( ! $this->get( 'options' ) ) {
echo '<div class="advads-radio-list ' . sanitize_html_class( $this->get( 'class' ) ) . '">';
foreach ( $this->get( 'options' ) as $key => $label ) :
<input type="radio" name="<?php echo esc_attr( $this->get( 'name' ) ); ?>" value="<?php echo esc_attr( $key ); ?>"<?php checked( $this->get( 'value' ), $key ); ?> /><?php echo esc_html( $label ); ?>