coresocial_inline_the_content_location
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_location", $location );
coreSocial 4.0 — core/methods/Inline.php:144
Arguments
Name
Type
Description
$location
string
Saved inline location after the current post override. Values used by rendering are top, bottom, both, or hide.
Returns
string — Automatic inline insertion location.
Runs in the automatic the_content handler before visibility is calculated. An individual post override is already applied at this point.
Returning hide makes the initial visibility false. Only top, bottom, or both cause the automatic renderer to insert markup. This does not reposition manually added blocks, widgets, or shortcodes.
Example
add_filter( 'coresocial_inline_the_content_location', function ( $location ) {
return is_page() ? 'top' : $location;
} );