add_shortcode( ‘dtv_hot_topics_2’, function ($atts) { // css -> /wp-content/themes/smart-mag/css/custom.css extract(shortcode_atts(array( ‘posts’ => 10, ‘sidebar’ => 0, ‘home’ => 0, ‘trending’ => 0, ‘multi’ => 0, ), $atts)); $postitems = $posts; $big_top = true; if($multi) { if (defined(‘LSCWP_V’)) { do_action( ‘litespeed_tag_add’,…Continue reading
function cmplz_my_filter_site_needs_cookiewarning( $cookiewarning_required) { //don’t show cookie banner for logged in users if ( is_user_logged_in() ) { $cookiewarning_required = false; if (!defined(‘CMPLZ_DO_NOT_BLOCK’) ) define(‘CMPLZ_DO_NOT_BLOCK’, true); } return $cookiewarning_required; } add_filter( ‘cmplz_site_needs_cookiewarning’, ‘cmplz_my_filter_site_needs_cookiewarning’ );Continue reading
/** * Custom shortcode to display WPForms form entries in table view * * Basic usage: [wpforms_entries_table id=”FORMID”] * * @link https://wpforms.com/developers/how-to-display-form-entries/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_entries_table( $atts ) { // Pull ID shortcode attributes.…Continue reading
/** * Add field values for dropdown, checkboxes, and multiple choice fields * * @link https://wpforms.com/developers/add-field-values-for-dropdown-checkboxes-and-multiple-choice-fields/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ add_filter( ‘wpforms_fields_show_options_setting’, ‘__return_true’ );Continue reading
/** * Defer the reCAPTCHA script until after the page loads * * @link https://wpforms.com/developers/how-to-defer-the-recaptcha-script/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_recaptcha_add_async_defer( $tag, $handle ) { if ( strpos( $tag, ‘recaptcha/api.js?onload=wpformsRecaptchaLoad’ ) !== false ) { $tag…Continue reading
/** * Change position of v2 Invisible reCAPTCHA badge * * @link https://wpforms.com/developers/how-to-change-the-position-of-the-v2-invisible-recaptcha-badge/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_invisible_recaptcha_position( $data, $form_data ) { $type = wpforms_setting( ‘recaptcha-type’, ‘v2’ ); if ( ‘invisible’ === $type ) {…Continue reading
/** * Run shortcodes on HTML field content * * @link https://wpforms.com/developers/how-to-display-shortcodes-inside-the-html-field/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_html_field_shortcodes( $field, $field_atts, $form_data ) { if ( ! empty( $field[ ‘code’ ] ) ) { $field[ ‘code’ ]…Continue reading
/** * Sets a default date for Date Picker * * @link https://wpforms.com/developers/how-to-set-a-default-date-for-your-date-picker-form-field/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_date_picker_default() { ?>Continue reading
/** * Adds the ability to select multiple dates inside the Date Picker field * * @link https://wpforms.com/developers/allow-date-range-or-multiple-dates-in-date-picker/ * * For support, please visit: https://www.facebook.com/groups/wpformsvip */ function wpf_dev_date_picker_multiple() { ?>Continue reading