/** * 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
// Simple public password protection for WordPress Multisite Subsite with mapped domains add_action(‘init’, function() { $required_password = ‘letmein’; //Continue reading
add_action(‘wpforms_wp_footer_end’, function () { ?>Continue reading
/** * Dynamically set Stripe payment description to include the current page/post title. * * @link https://wpforms.com/developers/ * * @param array $form_data Form data and settings. * @param array $entry Entry data. * * @return array */ function wpf_dev_process_form_data( $form_data,…Continue reading
// 1. Smart feed category assignment + fallback marking add_action(‘pmxi_saved_post’, function($post_id, $xml_node, $import_id) { try { $feed_category = ”; // Universal JSON/XML parsing if (is_array($xml_node)) { if (!empty($xml_node[‘tags’]) && is_array($xml_node[‘tags’])) { foreach ($xml_node[‘tags’] as $child) { if (isset($child[‘name’]) && !empty($child[‘name’]))…Continue reading
// 1. Smart feed category assignment + fallback marking add_action(‘pmxi_saved_post’, function($post_id, $xml_node, $import_id) { try { $feed_category = ”; // Universal JSON/XML parsing if (is_array($xml_node)) { if (!empty($xml_node[‘tags’]) && is_array($xml_node[‘tags’])) { foreach ($xml_node[‘tags’] as $child) { if (isset($child[‘name’]) && !empty($child[‘name’]))…Continue reading
function get_related_review_field( $atts ) { $atts = shortcode_atts( [ ‘review_field’ => ”, ‘relation_field’ => ‘related_review’, ‘post_id’ => null, ], $atts ); // Get the current post ID, even inside Elementor Loop $post_id = $atts[‘post_id’] ? $atts[‘post_id’] : get_queried_object_id(); if (…Continue reading
add_filter( ‘edd_gateway_supports’, ‘prefix_maybe_add_mixed_cart_support’, 999, 2 ); /** * Allow Stripe to support mixed carts. * Requires EDD 3.2.7. */ function prefix_maybe_add_mixed_cart_support( $supports, $gateway ) { if ( ‘stripe’ === $gateway ) { $supports[] = ‘mixed_cart’; } return $supports; }Continue reading