\MainWP\ChildMainWP_Child_Vulnerability_Checker

Class MainWP_Child_Vulnerability_Checker

MainWP Vulnerability Checker Extension handler.

Summary

Methods
Properties
Constants
instance()
__construct()
action()
vulner_recheck()
check_plugins()
check_wp()
check_themes()
vulnche_get_content()
get_random_user_agent()
$instance
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$wpvulndb_api
$wpvulndb_token
N/A

Properties

$instance

$instance : mixed

Public static variable to hold the single instance of the class.

Type

mixed — Default null

$wpvulndb_api

$wpvulndb_api : string

WPVulnDB API URL

Type

string

$wpvulndb_token

$wpvulndb_token : boolean

Whether or not to use wpvulndb_token. Default: false.

Type

boolean — true|false

Methods

instance()

instance() : mixed

Method instance()

Create a public static instance.

Returns

mixed —

Class instance.

__construct()

__construct() 

MainWP_Child_Vulnerability_Checker constructor.

Run any time class is called.

action()

action() 

MainWP Child Vulnerability Checker actions.

vulner_recheck()

vulner_recheck() : array

Check for vulnerabilities.

Returns

array —

Return an array $information[] containing $results[] array.

check_plugins()

check_plugins(boolean  $force = false) : array

Check for plugin vulnerabilities.

Parameters

boolean $force

Whether or not to force check. Default: false.

Returns

array —

Return $result array.

check_wp()

check_wp(boolean  $force = false) : boolean|string|null

Check for WP vulnerabilities.

Parameters

boolean $force

Whether or not to force check. Default: false.

Returns

boolean|string|null

check_themes()

check_themes(boolean  $force = false) : array

Check if themes have vunerabilities.

Parameters

boolean $force

Whether or not to force check. Default: false.

Returns

array —

Return $result array.

vulnche_get_content()

vulnche_get_content(string  $url) : boolean|string|null

Check if content is vulnerable.

Parameters

string $url

URL to check.

Returns

boolean|string|null

get_random_user_agent()

get_random_user_agent() : string

Get random useragent.

Returns

string —

User agent string.