coresocial_floating_show

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
apply_filters( "coresocial_floating_show", $show );
coreSocial 4.0 — core/pro/methods/Floating.php:95
Arguments
Name
Type
Description
$show
bool
Initially true, or false on a 404 when Skip 404 is enabled.
Returns
bool — Whether to register the floating bar footer output.

Pro version only

This filter is available only in the Pro version of the plugin. See the coreSocial Pro pricing page for available plans.

Requires an active Floating Bar method. Runs during the method’s wp_head callback, before the footer renderer is attached.

This controls whether the bar is added to the page. The frontend scroll threshold, mobile layout, and tab/hover behavior remain separate controls after the bar is rendered.

Example

add_filter( 'coresocial_floating_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