/** * 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
/** * 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
!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
/** * 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_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
/** * Author: Sumaiya , Clickup Doc: https://app.clickup.com/36636088/v/dc/12y1dr-22535/12y1dr-24575 * * This snippet redirects users after form submission based on their email. * If the user exists, they are sent to one page; if not, to another. */ add_filter(‘fluentform/submission_confirmation’, ‘custom_code_before_confirmation_msg_function_uniq’, 10,…Continue reading
{ “data”: [ { “event_name”: “Purchase”, “event_time”: 1748569223, “action_source”: “website”, “user_data”: { “em”: [ “7b17fb0bd173f625b58636fb796407c22b3d16fc78302d79f0fd30c2fc2fc068” ], “ph”: [ null ] }, “attribution_data”: { “attribution_share”: “0.3” }, “custom_data”: { “currency”: “USD”, “value”: “142.52” }, “original_event_data”: { “event_name”: “Purchase”, “event_time”: 1748569223 }…Continue reading
// Please note: This snippet will only show the last login date & time AFTER the snippet is activated. // The snippet has to be active to track the last login date & time. // Add a column to the…Continue reading