acf_str_exists()
acf_str_exists
This function will return true if a sub string is found
Хуков нет.
Возвращает
(true|false)
.
Использование
acf_str_exists( $needle, $haystack );
- $needle (обязательный)
- -
- $haystack (обязательный)
- -
Список изменений
С версии 5.0.0 | Введена. |
Код acf_str_exists() acf str exists ACF 6.0.4
function acf_str_exists( $needle, $haystack ) { // return true if $haystack contains the $needle if ( is_string( $haystack ) && strpos( $haystack, $needle ) !== false ) { return true; } // return return false; }