mirror of
https://gh.wpcy.net/https://github.com/mainwp/Code-Snippets-Functions.git
synced 2026-05-01 11:52:25 +08:00
11 lines
388 B
Text
11 lines
388 B
Text
function my_cr_floatingtrustbadge_hide() {
|
|
$current_post_id = get_the_ID();
|
|
// replace '526' with a post id from your site
|
|
if( 526 === $current_post_id ) {
|
|
// return 'true' to hide the floating trust badge
|
|
return true;
|
|
}
|
|
// return 'false' to display the floating trust badge
|
|
return false;
|
|
}
|
|
add_filter( 'cr_floatingtrustbadge_hide', 'my_cr_floatingtrustbadge_hide' );
|