: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace EmbedPress\Includes\Classes;
use \Elementor\Controls_Manager;
class Extend_CustomPlayer_Controls
public function __construct()
add_action('extend_customplayer_controls', [$this, 'extend_elementor_customplayer_controls'], 10, 4);
public function extend_elementor_customplayer_controls($that, $infix = '', $pro_text = '', $pro_class = '')
'emberpress_custom_player' => 'yes',
'embedpress_pro_embeded_source' => ['youtube', 'vimeo', 'selfhosted_video', 'selfhosted_audio']
'embepress_player_restart',
'label' => __('Restart', 'embedpress'),
'type' => Controls_Manager::SWITCHER,
'condition' => $condition,
'embepress_player_rewind',
'label' => __('Rewind', 'embedpress'),
'type' => Controls_Manager::SWITCHER,
'condition' => $condition,
'embepress_player_fast_forward',
'label' => __('Fast Forward', 'embedpress'),
'type' => Controls_Manager::SWITCHER,
'condition' => $condition,
'embepress_player_tooltip',
'label' => sprintf(__('Tooltip %s', 'embedpress'), $pro_text),
'type' => Controls_Manager::SWITCHER,
'condition' => $condition,
'embepress_player_hide_controls',
'label' => sprintf(__('Auto Hide Controls %s', 'embedpress'), $pro_text),
'type' => Controls_Manager::SWITCHER,
'emberpress_custom_player' => 'yes',
'embedpress_pro_embeded_source' => ['youtube', 'vimeo', 'selfhosted_video']
'embepress_player_download',
'label' => sprintf(__('Source Link %s', 'embedpress'), $pro_text),
'type' => Controls_Manager::SWITCHER,
'condition' => $condition,