mirror of
https://github.com/WenPai-org/wp-china-yes.git
synced 2025-08-03 11:11:30 +08:00
29 lines
570 B
PHP
Executable file
29 lines
570 B
PHP
Executable file
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
|
|
/**
|
|
*
|
|
* Sanitize
|
|
* Replace letter a to letter b
|
|
*
|
|
* @since 1.0.0
|
|
* @version 1.0.0
|
|
*
|
|
*/
|
|
if ( ! function_exists( 'wp_china_yes_sanitize_replace_a_to_b' ) ) {
|
|
function wp_china_yes_sanitize_replace_a_to_b( $value ) {
|
|
return str_replace( 'a', 'b', $value );
|
|
}
|
|
}
|
|
|
|
/**
|
|
*
|
|
* Sanitize title
|
|
*
|
|
* @since 1.0.0
|
|
* @version 1.0.0
|
|
*
|
|
*/
|
|
if ( ! function_exists( 'wp_china_yes_sanitize_title' ) ) {
|
|
function wp_china_yes_sanitize_title( $value ) {
|
|
return sanitize_title( $value );
|
|
}
|
|
}
|