: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
namespace Saltus\WP\Plugin\Saltus\InteractiveMaps\Plugin;
use Saltus\WP\Plugin\Saltus\InteractiveMaps\Core;
* Manage available click actions
* Available click actions
* @param Core $core This plugin's instance.
public function __construct( Core $core ) {
$this->actions = $this->get_actions();
// filters - set default actions
add_filter( 'igm_click_actions', array( $this, 'default_actions' ) );
public function get_actions() {
/* translators: "None" is one of the options for "Click Action" */
'none' => __( 'None', 'interactive-geo-maps' ),
/* translators: "Open URL" is one of the options for "Click Action" */
'open_url' => __( 'Open URL', 'interactive-geo-maps' ),
/* translators: "Open URL (new tab)" is one of the options for "Click Action" */
'open_url_new' => __( 'Open URL (new tab)', 'interactive-geo-maps' ),
public function default_actions( $actions ) {
$actions = array_merge( $actions, $this->get_actions() );