تابع ووکامرسی wc_sanitize_term_text_based دریافت محتوا خوانا از کد HTML

تابع ووکامرسی wc_sanitize_term_text_based – دریافت محتوا خوانا از کد HTML
Syntax – سینتکس
(string) wc_sanitize_term_text_based( (string) $term );
Parameters – پارامتر ها (1)
- 1- $term (string)
Usage – نحوه استفاده
if ( !function_exists( 'wc_sanitize_term_text_based' ) ) { require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-formatting-functions.php'; } // The term. $term = ''; // NOTICE! Understand what this does before running. $result = wc_sanitize_term_text_based($term);
Defined – محل تعریف
/includes/wc-formatting-functions.php
function wc_sanitize_term_text_based( $term ) { return trim( wp_unslash( strip_tags( $term ) ) ); }
versions – نسخه ها
از نسخه : 2.4.5
نسخه فعلی : 3.0.6
دیگر نسخه ها : 3.0.6 , 3.0.5 , 3.0.4 , 3.0.3 , 3.0.2
ارسال نظر