• File: sanitize.php
  • Full Path: /home/monpetu/www/leoreno.fr/wp-content/plugins/buildexo-plugin/codestar/functions/sanitize.php
  • Date Modified: 10/29/2024 2:43 PM
  • File size: 563 bytes
  • MIME-type: text/x-php
  • Charset: utf-8
<?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( 'csf_sanitize_replace_a_to_b' ) ) {
  function csf_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( 'csf_sanitize_title' ) ) {
  function csf_sanitize_title( $value ) {
    return sanitize_title( $value );
  }
}