How to Store Field Values in the WPForms Entry

/** * Show values in Dropdown, checkboxes, and Multiple Choice. */ add_action( ‘wpforms_fields_show_options_setting’, ‘__return_true’ ); /** * Save choices ‘values’ instead of ‘labels’ for the fields with ‘Show values’ option enabled. * * @link https://wpforms.com/developers/how-to-store-field-values-in-the-wpforms-entry/ */ function wpf_dev_process_filter_choices_values( $fields, $entry,…Continue reading

class DeleteUploadedFiles {}

/** * Class deleteuploadedfiles to delete uploaded files from the server * * @link https://wpforms.com/developers/class-deleteuploadedfiles/ */ namespace WPF; class DeleteUploadedFiles { /** * Should we delete files from the WordPress Media Library? * Change the constant to true to delete…Continue reading

The7-Metaboxen für Post Types ausspielen

/** * Return post types with default meta boxes for The7 theme * * @author Golden Oak Web Design * @license https://www.gnu.org/licenses/gpl-2.0.html GPLv2+ */ function golden_oak_web_design_presscore_pages_with_basic_meta_boxes( $post_type_array ) { $post_type_array = array( ‘page’, ‘post’, ‘mec-events’ ); return $post_type_array; } add_filter(…Continue reading

Silent-Print etichete/sku counters

add_action(‘woocommerce_admin_order_data_after_order_details’, function($order){ if (!$order instanceof WC_Order) return; $sku_counts = []; foreach ($order->get_items() as $item) { $product = $item->get_product(); if (!$product) continue; $sku = $product->get_sku(); if (!$sku || $sku==”mostre01″) continue; $qty = $item->get_quantity(); if (!isset($sku_counts[$sku])) { $sku_counts[$sku] = 0; } $sku_counts[$sku]…Continue reading

admin-area-configs

// Determine the values to use in the script $local_silent_print_server = defined(‘LOCAL_SILENT_PRINT_SERVER’) ? (LOCAL_SILENT_PRINT_SERVER ? ‘true’ : ‘false’) : ‘false’; $open_etichete_pdf_new_table = defined(‘OPEN_ETICHETE_PDF_NEW_TABLE’) ? (OPEN_ETICHETE_PDF_NEW_TABLE ? ‘true’ : ‘false’) : ‘false’; $open_awb_pdf_new_table = defined(‘OPEN_AWB_PDF_NEW_TABLE’) ? (OPEN_AWB_PDF_NEW_TABLE ? ‘true’ : ‘false’)…Continue reading

manizzz (copy)

!function (w, d, t) { w.TiktokAnalyticsObject=t;var ttq=w[t]=w[t]||[];ttq.methods=[“page”,”track”,”identify”,”instances”,”debug”,”on”,”off”,”once”,”ready”,”alias”,”group”,”enableCookie”,”disableCookie”,”holdConsent”,”revokeConsent”,”grantConsent”],ttq.setAndDefer=function(t,e){t[e]=function(){t.push([e].concat(Array.prototype.slice.call(arguments,0)))}};for(var i=0;i<ttq.methods.length;i++)ttq.setAndDefer(ttq,ttq.methods[i]);ttq.instance=function(t){for( var e=ttq._i[t]||[],n=0;n<ttq.methods.length;n++)ttq.setAndDefer(e,ttq.methods[n]);return e},ttq.load=function(e,n){var r="https://analytics.tiktok.com/i18n/pixel/events.js",o=n&&n.partner;ttq._i=ttq._i||{},ttq._i[e]=[],ttq._i[e]._u=r,ttq._t=ttq._t||{},ttq._t[e]=+new Date,ttq._o=ttq._o||{},ttq._o[e]=n||{};n=document.createElement("script") ;n.type="text/javascript",n.async=!0,n.src=r+"?sdkid="+e+"&lib="+t;e=document.getElementsByTagName("script")[0];e.parentNode.insertBefore(n,e)}; ttq.load('D0TAVPBC77UC6ES2KLK0'); ttq.page(); }(window, document, 'ttq');Continue reading

0810 > Move the field label to below the field

/** * Remove the field label from the top of the field * * @link https://wpforms.com/developers/how-to-create-a-form-with-floating-labels/ */ function wpf_dev_display_field_before( $field, $form_data ) { remove_action( ‘wpforms_display_field_before’, array( wpforms()->frontend, ‘field_label’ ), 15 ); } add_action( ‘wpforms_display_field_before’, ‘wpf_dev_display_field_before’, 10, 2 ); /** *…Continue reading

Add Donor Comments To Donor Wall

add_action(‘charitable_donor_loop_after_donor’, ‘example_charitable_donor_loop_after_donor’, 10, 2 ); function example_charitable_donor_loop_after_donor( $donor, $view_args ) { $user_id = $donor->get_user_id(); $campaign_id = ! empty ( $view_args[‘campaign’] ) ? $view_args[‘campaign’] : 0; if ( 0 === $campaign_id ) { return; } $args = array( ‘user_id’ => $user_id,…Continue reading