AnsPress_Bad_words::get_bad_words()
Description #
Check if checking for bad word is enabled.
Source #
File: addons/free/bad-words.php
public static function get_bad_words() { $bad_word_file = ap_get_theme_location( 'badwords.txt' ); // Return if badwords.txt file does not exists. if ( file_exists( $bad_word_file ) ) { return file( $bad_word_file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES ); } $option = ap_opt( 'bad_words' ); if ( ! empty( $option ) ) { return explode( ',', $option ); } return []; }
Expand full source code Collapse full source code View on GitHub: addons/free/bad-words.php:91
Add your comment