Automattic\WooCommerce\Admin\API

OnboardingTasks::sanitize_special_column_name_regex()public staticWC 1.0

Sanitize special column name regex.

Method of the class: OnboardingTasks{}

No Hooks.

Return

String.

Usage

$result = OnboardingTasks::sanitize_special_column_name_regex( $value );
$value(string) (required)
Raw special column name.

OnboardingTasks::sanitize_special_column_name_regex() code WC 7.3.0

public static function sanitize_special_column_name_regex( $value ) {
	return '/' . str_replace( array( '%d', '%s' ), '(.*)', trim( quotemeta( $value ) ) ) . '/';
}