wordfence_updated_country_blocking

wordfence_updated_country_blocking

Appears in:
Hook Type: action

See hook in core

Displaying hooks found in version: wordfence.8.0.1

do_action('wordfence_updated_country_blocking') is found 3 times:

  • /lib/wfConfig.php line 3256
     
    				/**
    				 * @see wfBlock::createCountry()
    				 */
    				do_action('wordfence_updated_country_blocking', $before, $after);
    				break;
    			}
    			case 'auditLogMode':
    			{
    				$before = wfConfig::get($key);
    				$after = $newValue;
    
  • /models/block/wfBlock.php line 506
    		 * 		}
    		 * }
    		 * @param array $after The country block configuration after the change, same structure as $before
    		 */
    		do_action('wordfence_updated_country_blocking', $before, $after);
    
    		if (!WFWAF_SUBDIRECTORY_INSTALL && class_exists('wfWAFIPBlocksController')) {
    			wfWAFIPBlocksController::setNeedsSynchronizeConfigSettings();
    		}
    	}
    
    
  • /models/block/wfBlock.php line 655
     
    				/**
    				 * @see wfBlock::createCountry()
    				 */
    				do_action('wordfence_updated_country_blocking', $before, $after);
    
    				$ipHex = wfDB::binaryValueToSQLHex(self::MARKER_COUNTRY);
    				return $wpdb->query($wpdb->prepare("INSERT INTO `{$blocksTable}` (`type`, `IP`, `blockedTime`, `reason`, `lastAttempt`, `blockedHits`, `expiration`, `parameters`) VALUES (%d, {$ipHex}, %d, %s, %d, %d, %d, %s)", self::TYPE_COUNTRY, (int) $b['blockedTime'], $b['reason'], (int) $b['lastAttempt'], (int) $b['blockedHits'], self::DURATION_FOREVER, json_encode($parameters))) !== false;
    			case self::TYPE_PATTERN:
    				if (!isset($b['parameters'])) { return false; }
    				if (wfUtils::inet_pton($ip) != self::MARKER_PATTERN) { return false; }