// This code snippet ensures that vendors are displayed in the following order: // – Featured vendors (vendor posts with ‘status_ven_featured’ set to 1) in ascending order by post title // – Love list vendors (vendor posts with ‘status_ven_love_list’ set…Continue reading
// This code snippet ensures that vendors are displayed in the following order: // – Featured vendors (vendor posts with ‘status_ven_featured’ set to 1) in ascending order by post title // – Love list vendors (vendor posts with ‘status_ven_love_list’ set…Continue reading
// This code snippet provides dynamic data to a // In use for Elementor Templates // – Active Templates: Vendor Taxonomy Archive // – Vendor Taxonomies: Vendor Location, Vendor Zone, Vendor Pricing, Vendor Identity Attributes, Vendor Categories // Reference URL…Continue reading
/** * 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 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
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
add_action( ‘template_redirect’, function () { global $post; if ( ! is_attachment() || ! isset( $post->post_parent ) || ! is_numeric( $post->post_parent ) ) { return; } // Does the attachment have a parent post? // If the post is trashed, fallback…Continue reading
add_action( ‘template_redirect’, function () { global $post; if ( ! is_attachment() || ! isset( $post->post_parent ) || ! is_numeric( $post->post_parent ) ) { return; } // Does the attachment have a parent post? // If the post is trashed, fallback…Continue reading
add_action( ‘template_redirect’, function () { global $post; if ( ! is_attachment() || ! isset( $post->post_parent ) || ! is_numeric( $post->post_parent ) ) { return; } // Does the attachment have a parent post? // If the post is trashed, fallback…Continue reading
add_action(‘after_setup_theme’, ‘remove_admin_bar’); function remove_admin_bar() { if (!current_user_can(‘administrator’) && !is_admin()) { show_admin_bar(false); } }Continue reading