Skip to main content

WP Speed Of Light Developer Documentation

This documentation will help experienced developers to plug any other service with our plugin. Here are all actions and filters for this plugin, if you need some more, feel free to ask by using this for dedicated forum. Thanks for using our plugin!

wpsol_clean_database

Clean database by type

Parameters :

string Type of database object cleaned (revisions, drafted, trash, comments, trackbacks, transient)

Return :

void

In files :

src/WpsolDatabaseCleanup.php line 46

wpsol_purge_cache

Action called after cache has been completely cleared

Parameters :

array Extra informations, origine of clear call, total cache cleared

Return :

void

In files :

src/SpeedOptimization.php line 226
src/Configuration.php line 221
src/Cache/CleanCacheTime.php line 119

wpsol_retrieve_page_analysis

Action called after a page analysis has been completed on page insight and processed by WP Speed Of Light

Parameters :

array Analysis result

Return :

void

In files :

src/SpeedAnalysis.php line 214

wpsol_retrieve_raw_page_analysis

Action called after a page analysis has been completed on pagespeed insights

Parameters :

array result from pagespeed

Return :

void

In files :

src/SpeedAnalysis.php line 111

debug_information

Add or modify the debug information.
Plugin or themes may wish to introduce their own debug information without creating additional admin pages
they can utilize this filter to introduce their own sections or add more data to existing sections.
Array keys for sections added by core are all prefixed with `wp-`, plugins and themes should use their own slug as
a prefix, both for consistency as well as avoiding key collisions. Note that the array keys are used as labels
for the copied data.
All strings are expected to be plain text except $description that can contain inline HTML tags (see below).

Parameters :

array $info Information

Return :

void

In files :

jufeedback/ju-check-debug-data.php line 1075

wpsol_addon_do_defer_inline_script

WPSOL defer inline script

Parameters :

none

Return :

void

In files :

src/Minification/Scripts.php line 604
src/Minification/Scripts.php line 641

wpsol_addon_do_defer_inline_script

WPSOL defer inline script

Parameters :

none

Return :

void

In files :

src/Minification/Scripts.php line 604
src/Minification/Scripts.php line 641

wpsol_before_cache

Filter html content before put it to cache file.
You can modify the content of the page before it is saved in the cache file

Parameters :

string Content of page

Return :

string

In files :

src/Cache/file-page-cache.php line 230

wpsol_cache_delayed

Filter to enable cache delayed

Parameters :

boolean

Return :

void

In files :

src/Minification/Cache.php line 57

wpsol_cache_nogzip

Filter to enable cache nogzip

Parameters :

boolean

Return :

void

In files :

src/Minification/Cache.php line 63

wpsol_cache_purge_interval

Filter time interval that automatically runs the cache cleaner.

Parameters :

integer Html raw and header

Return :

integer

In files :

src/Cache/CleanCacheTime.php line 88

wpsol_css_inline_do_minify

Should we minify the specified inline css content

Parameters :

true Default value
string Css content

Return :

boolean

In files :

src/Minification/Styles.php line 128

wpsol_css_inline_max_size

Apply filter inline size of css

Parameters :

string wpsol_css_inline_max_size
integer Default value

Return :

integer

In files :

src/Minification/Styles.php line 141

wpsol_css_url_do_minify

Apply filter to allow or not minifying a css url

Parameters :

boolean Default check minify value
string Style url

Return :

boolean|string

In files :

src/Minification/Styles.php line 347

wpsol_html_after_cdn

Filter new HTML content after it has been replaced by CDN

Parameters :

string New html

Return :

string

In files :

src/Cdn/Rewrite.php line 120

wpsol_html_do_minify

Should we minify the specified inline html content

Parameters :

true Minify by default the content
string Html content

Return :

boolean

In files :

src/Minification/Html.php line 68

wpsol_html_minification_exclude_string

Apply filter to add strings to be excluded from HTML minification

Parameters :

array Default value

Return :

array

In files :

src/Minification/Html.php line 47

wpsol_manage_options_capability

Filter Capability and Role to display menu.

Parameters :

string Capability name

Return :

string

In files :

src/Admin.php line 82

wpsol_page_url_do_cache

Should we cache the specified url
The filter should return true to cache the page or false if it should not be cached

Parameters :

true Cache the page by default
string Url of the page

Return :

boolean

In files :

src/Cache/file-page-cache.php line 152