: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
abstract class Base implements ITarget, IWPML_Action {
public function __construct( Adaptor $adaptor ) {
$this->adaptor = $adaptor;
$adaptor->set_target( $this );
abstract public function get_namespace();
public function add_hooks() {
$this->adaptor->add_hooks();
public static function getStringType() {
'sanitize_callback' => 'WPML_REST_Arguments_Sanitation::string',
public static function getIntType() {
'validate_callback' => 'WPML_REST_Arguments_Validation::integer',
'sanitize_callback' => 'WPML_REST_Arguments_Sanitation::integer',