/** * 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
add_action( ‘init’, ‘register_bug’ ); function register_bug() { $labels = array( ‘name’ => __( ‘Bugs’, ‘text_domain’ ), ‘singular_name’ => __( ‘Bug’, ‘text_domain’ ), ‘add_new’ => _x( ‘Add New Bug’, ‘bug’, ‘text_domain’ ), ‘add_new_item’ => __( ‘Add New Bug’, ‘text_domain}’ ), ‘edit_item’…Continue reading
document.addEventListener(‘DOMContentLoaded’, function() { // Select the input element by its id var usernameInput = document.getElementById(‘user_login’); // Check if the element exists to avoid any potential JavaScript errors if (usernameInput) { // Change the placeholder text usernameInput.placeholder = ‘Nome utente o…Continue reading
function generate_bulk_invoices() { if( isset( $_REQUEST[ ‘generate-invoices’ ] ) ) { global $wpdb; $query = “SELECT id FROM {$wpdb->prefix}mepr_transactions WHERE status in (‘complete’, ‘confirmed’, ‘refunded’)”; $txn_ids = $wpdb->get_results( $query ); foreach( $txn_ids as $txn_id ) { $invoices = new MePdfInvoicesCtrl();…Continue reading