Support » Fixing WordPress » Blacklist words table location (In Discussion Settings)

  • I have incorporated a piece of php code called curse-filter-class into my themes function.php

    The code utilizes the following:

    * MySQL table that contains defined words
    	 * @private string
    	 */
    	private $_table = 'words';

    and

    /**
    	 * List of defined words and their respective replacements
    	 * @private array
    	 */
    	private $_wordList = array();

    I am looking in MySQL right now and nothing is jumping out in WordPress that would point me in the direction to be able to replace the “$_table” and “$_wordList” tables in the php code to the corresponding WP table names…

    Any help? Are you confused? Please let me know… thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • There is no table of this type in WordPress. You’d need to set it up and populate it manually.

    Thread Starter rsgrone

    (@rsgrone)

    I realize that… however, in the “Settings” under “Discussion” there are a list of “Blacklisted” words to which I could easily use… I only need to know what or how WordPress refers to that list at that particuliar location…

    Thread Starter rsgrone

    (@rsgrone)

    The purpose of the code is to automatically block the profanity with the usual #$*&%^ garbage… unless there is a WordPress plugin that will do that (I have not been able to find one yet) I will use that instead…

    I am planning on “Walking away” from the site and letting whomever post whatever without me having to do any moderation/approaval at all…

    Thread Starter rsgrone

    (@rsgrone)

    Never mind I just answered my own question… it is in wp_options black_list keys…

    They’re stored in the wp_options table under the option_name blacklist_keys.

    Snap! 🙂

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Blacklist words table location (In Discussion Settings)’ is closed to new replies.