wordfence_waf_changed_protection_level

wordfence_waf_changed_protection_level

Hook Type: action

See hook in core

Displaying hooks found in version: wordfence.8.2.0

do_action('wordfence_waf_changed_protection_level') is found 2 times:

  • /lib/wordfenceClass.php line 7751
    			 *
    			 * @param string $before The previous mode.
    			 * @param string $after The new mode.
    			 */
    			do_action('wordfence_waf_changed_protection_level', wfFirewall::PROTECTION_MODE_BASIC, wfFirewall::PROTECTION_MODE_EXTENDED);
    
    			return array('ok' => 1, 'postInstallAction' => $postInstallAction, 'postInstallActionData' => $postInstallActionData);
    		}
    		catch (wfWAFAutoPrependHelperException $e) {
    			return array('installationFailed' => 1, 'error' => $e->getMessage());
    		}
    
  • /lib/wordfenceClass.php line 7849
    				 *
    				 * @param string $before The previous mode.
    				 * @param string $after The new mode.
    				 */
    				do_action('wordfence_waf_changed_protection_level', wfFirewall::PROTECTION_MODE_EXTENDED, wfFirewall::PROTECTION_MODE_BASIC);
    
    				return $response;
    			}
    			else { //.user.ini and .htaccess modified if applicable and waiting period elapsed or otherwise ready to advance to next step
    				if (WFWAF_AUTO_PREPEND && !WFWAF_SUBDIRECTORY_INSTALL && !WF_IS_WP_ENGINE && !WF_IS_PRESSABLE) { //.user.ini modified, but the WAF is still enabled
    					return array('uninstallationFailed' => true, 'errorMsg' => __('Extended Protection Mode has not been disabled. This may be because <code>auto_prepend_file</code> is configured somewhere else or the value is still cached by PHP.', 'wordfence'));