coresocial_inline_the_content_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_inline_the_content_show", $show );
coreSocial 4.0 — core/methods/Inline.php:152
Arguments
Name
Type
Description
$show
bool
Calculated visibility: main query, singular selected post type, and location not hide.
Returns
bool — Whether automatic inline insertion should proceed.
Runs after the location filter. The incoming value is calculated from the query and configuration; it is not always true.
Preserve the incoming result when adding exclusions. Returning true can bypass the initial query/post-type checks, but the location still must be top, bottom, or both to insert markup.
Example
add_filter( 'coresocial_inline_the_content_show', function ( $show ) {
return $show && ! is_front_page();
} );