Disable RSS – Feed

function remove_feeds() { wp_die( __( ‘Feeds Disabled’ ) ); } add_action(‘do_feed’, ‘remove_feeds’, 1); add_action(‘do_feed_rdf’, ‘remove_feeds’, 1); add_action(‘do_feed_rss’, ‘remove_feeds’, 1); add_action(‘do_feed_rss2’, ‘remove_feeds’, 1); add_action(‘do_feed_atom’, ‘remove_feeds’, 1); add_action(‘do_feed_rss2_comments’, ‘remove_feeds’, 1); add_action(‘do_feed_atom_comments’, ‘remove_feeds’, 1); remove_action( ‘wp_head’, ‘feed_links_extra’, 3 ); remove_action( ‘wp_head’, ‘feed_links’, 2…Continue reading

Create a Smart Tag for the Current Time

/** * Create a custom Smart Tag Original doc link: https://wpforms.com/developers/how-to-create-a-smart-tag-for-the-current-time/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_register_smarttag( $tags ) { // Key is the tag, item is the tag name. $tags[ ‘current_time’ ] = ‘Current Time’; return $tags;…Continue reading

Include Field Descriptions Inside Email Notifications

/* Include field descriptions inside email notifications Original doc link: https://wpforms.com/developers/how-to-include-field-descriptions-inside-email-notifications/ For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_html_field_value( $field_val, $field, $form_data, $context ) { if ( $context !== ’email-html’ ) { return $field_val; } if ( empty( $form_data[ ‘fields’…Continue reading

Change rating tooltip colors

/* change #000 in both places below to change the background, change #FFF to change the text color, change #F7D578 to change the link color */ .tasty-recipes-static-tooltip { background-color:#000 !important; color:#FFF !important; } .tasty-recipes-static-tooltip:after { border-top-color:#000 !important; } a.tasty-recipes-scrollto {…Continue reading

Make Paypal as default payment gateway

if ( ! function_exists( ‘wcv_default_commission_payout_method_input’ ) ) { /** * Set the default commission payout method to paypal * * @param array $args the input arguments. */ function wcv_default_commission_payout_method_input( $args ) { $args[‘value’] = ‘paypal’; $options = $args[‘options’]; if (…Continue reading