Enabling or Disabling Social Networks

These are the filters you can use to enable or disable social networks.

There are filters for each social network where you can enable/disable each network programmatically.

An example of hiding a social network via code would look like this:

Filter: has_show_twitter
<?php
add_filter(
	'has_show_twitter',
	function( $show_twitter ) {
		if ( is_page() ) {
			return false;
		}
		return $show_twitter;
	}
);

Available Filters

Each filter returns a boolean:

  • has_show_twitter

  • has_show_facebook

  • has_show_linkedin

  • has_show_email

  • has_show_copy

  • has_show_reddit

  • has_show_telegram

  • has_show_whatsapp

Last updated