1
0

sanitize.php 534 B

1234567891011121314151617181920212223242526272829
  1. <?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access directly.
  2. /**
  3. *
  4. * Sanitize
  5. * Replace letter a to letter b
  6. *
  7. * @since 1.0.0
  8. * @version 1.0.0
  9. *
  10. */
  11. if ( ! function_exists( 'csf_sanitize_replace_a_to_b' ) ) {
  12. function csf_sanitize_replace_a_to_b( $value ) {
  13. return str_replace( 'a', 'b', $value );
  14. }
  15. }
  16. /**
  17. *
  18. * Sanitize title
  19. *
  20. * @since 1.0.0
  21. * @version 1.0.0
  22. *
  23. */
  24. if ( ! function_exists( 'csf_sanitize_title' ) ) {
  25. function csf_sanitize_title( $value ) {
  26. return sanitize_title( $value );
  27. }
  28. }