: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* $value = $this->get_option( $args['id'] );
* $value = isset( $args['std'] ) ? $args['std'] : '';
* $default = isset( $args['std'] ) ? $args['std'] : '';
* $html = '<input type="text" class="di-color-picker" id="<?php echo esc_attr( $args['id'] ); ?>" name="<?php echo esc_attr( $args['name'] ); ?>" value="' . echo esc_attr( $value ) . '" data-default-color="' . echo esc_attr( $default ) . '" />';
* $html .= '<label for="<?php echo esc_attr( $args['id'] ); ?>"> ' . $args['desc'] . '</label>';
* Descriptive text callback.
* Renders descriptive text onto the settings field.
* @param array $args Arguments passed by the setting
* public function descriptive_text_callback( $args ) {
* echo esc_html( $args['desc'] );
* Registers the license field callback for Software Licensing
* @param array $args Arguments passed by the setting
* public function license_key_callback( $args ) {
* $value = $this->get_option( $args['id'] );
* $value = isset( $args['std'] ) ? $args['std'] : '';
* $size = ( isset( $args['size'] ) && ! is_null( $args['size'] ) ) ? $args['size'] : 'regular';
* $html = '<input type="' . ( $value == '' ? 'text' : 'password' ) . '" class="' . $size . '-text" id="<?php echo esc_attr( $args['id'] ); ?>" name="<?php echo esc_attr( $args['name'] ); ?>" value="' . echo esc_attr( $value ) . '"/>';
* if ( 'valid' == get_option( $args['options']['is_valid_license_option'] ) ) {
* $html .= '<input type="submit" class="button-secondary" name="' . $args['id'] . '_deactivate" value="' . __( 'Deactivate License' ) . '"/>';
* $html .= '<label for="<?php echo esc_attr( $args['id'] ); ?>"> ' . $args['desc'] . '</label>';