// Disable search in WordPress - More snippets at wpunplugged.com
add_filter('woocommerce_product_single_add_to_cart_text', 'woo_custom_cart_button_text');
function woo_custom_cart_button_text() {
return __('Book Now', 'woocommerce');
}
How to show activity comment count to logged in users only in BuddyPress
To show the activity comment count to logged-in users only in BuddyPress using functions.php, you can use the bp_activity_get_comment_count function in your theme’s functions.php file