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!

Description

Filters the Inline block visibility. Use this filter to hide the inline share block on selected posts or pages, by returning false.

Definition
apply_filters( coresocial_inline_the_content_show, $visibility );
Arguments
Name
Type
Description
visibility
bool
By default, TRUE, and the inline block will be added to the page. Return FALSE to hide it.
true

Example

Disable Inline share block on the post with the ID 1.

add_filter('coresocial_inline_the_content_show', 'dev4press_example__coresocial_inline_the_content_show');
function dev4press_example__coresocial_inline_the_content_show($visibility) {
  if (is_post(1)) {
    $visibility = false;
  }

  return $visibility;
}
0
0
20
Rate this reference

You are not allowed to rate this post.

Leave a Comment