coresocial_load_settings
Developer Knowledge Level
This content is intended for WordPress developers, and it may require coding knowledge of WordPress, PHP, and JavaScript. Code examples provided here may contain errors or needs some additional coding. Make sure to test the code before using it on a live website!
PHP
Definition
do_action( "coresocial_load_settings" );
coreSocial 4.0 — core/basic/Plugin.php:52
Fires near the start of the plugin run() method. The Settings service attaches its initialization callback to this action at priority 2.
A listener after priority 2 can read initialized settings. Register before coreSocial runs; adding the listener later does not replay the event.
Example
add_action( 'coresocial_load_settings', function () {
$on_demand = coresocial_settings()->get( 'load_files_on_demand' );
}, 10 );