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 :

/inc/wpsol-database-cleanup.php line 45

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 :

/inc/caches/clean-cache-time.php line 124
/inc/wpsol-speed-optimization.php line 185
/inc/wpsol-configuration.php line 268

wpsol_retrieve_page_analysis

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

Parameters :

array Analysis result

Return :

void

In files :

/inc/wpsol-speed-analysis.php line 222

wpsol_retrieve_raw_page_analysis

Action called after a page analysis has been completed on webpagetest.org

Parameters :

object XML result from webpagetest

Return :

void

In files :

/inc/wpsol-speed-analysis.php line 122

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 :

/inc/caches/file-page-cache.php line 228

wpsol_cache_purge_interval

Filter time interval that automatically runs the cache cleaner.

Parameters :

integer Html raw and header

Return :

integer

In files :

/inc/caches/clean-cache-time.php line 93

wpsol_css_inline_do_minify

Should we minify the specified inline css content

Parameters :

true Default value
string Css content

Return :

boolean

In files :

/inc/minifications/wpsol-minification-styles.php line 176

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 :

/inc/minifications/wpsol-minification-styles.php line 193

wpsol_css_url_do_minify

Apply filter to allow or not minifiying a css url

Parameters :

boolean Default check minify value
string Style url

Return :

boolean|string

In files :

/inc/minifications/wpsol-minification-styles.php line 369

wpsol_html_after_cdn

Filter new HTML content after it has been replaced by CDN

Parameters :

string New html

Return :

string

In files :

/inc/cdn-integration/cdn-rewrite.php line 115

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 :

/inc/minifications/wpsol-minification-html.php line 83

wpsol_html_minification_exclude_string

Apply filter to add strings to be excluded from HTML minification

Parameters :

array Default value

Return :

array

In files :

/inc/minifications/wpsol-minification-html.php line 62

wpsol_js_inline_do_minify

Should we minify the specified inline javascript content

Parameters :

boolean Default check minify value
string Javascript source

Return :

boolean

In files :

/inc/minifications/wpsol-minification-scripts.php line 328

wpsol_js_url_do_minify

Should we minify the specified javascript file
The filter should return true to minify the file or false if it should not be minified

Parameters :

boolean Default check minify value
string Script url

Return :

boolean

In files :

/inc/minifications/wpsol-minification-scripts.php line 349

wpsol_manage_options_capability

Filter Capability and Role to display menu.

Parameters :

string Capability name

Return :

string

In files :

/inc/wpsol-admin.php line 61

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 :

/inc/caches/file-page-cache.php line 148

Edit