coresocial_plugin_core_ready

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_plugin_core_ready" );
coreSocial 4.0 — core/basic/Plugin.php:62

Fires after the plugin has initialized settings and registered its core enqueue/title/styling callbacks, but before the sharing Loader, Shortcodes service, block registration service, and Elementor integration are initialized in run().

Do not interpret this as meaning that every sharing method, shortcode, or Elementor widget has already been registered. It is useful for attaching filters needed by those upcoming initializers.

Example

add_action( 'coresocial_plugin_core_ready', function () {
    add_filter( 'coresocial_inline_the_content_show', function ( $show ) {
        return $show && ! is_search();
    } );
} );
Rate this reference
0
0
2

You are not allowed to rate this post.

Leave a Comment

0
0
0
0
0
0
0
0
0