Localizing Date Picker Strings

/** * Load the date picker locale strings. * * @link https://wpforms.com/developers/localize-the-date-picker-strings/ */ function wpf_dev_datepicker_locale( $forms ) { if ( true === wpforms_has_field_type( ‘date-time’, $forms, true )){ wp_enqueue_script( ‘wpforms-datepicker-locale’, ‘https://npmcdn.com/[email protected]/dist/l10n/es.js’, array( ‘wpforms-flatpickr’ ), null, true ); } } add_action( ‘wpforms_frontend_js’,…Continue reading

Modern CSS Reset

/* 1. Use a more-intuitive box-sizing model */ *, *::before, *::after { box-sizing: border-box; } /* 2. Remove default margin */ * { margin: 0; } body { /* 3. Add accessible line-height */ line-height: 1.5; /* 4. Improve text…Continue reading

How to Hide Zero Quantity Items in Dropdown Payment Field Notifications

/** * Hiding Zero Quantity Items in Email Notifications for Payment Fields * * @link https://wpforms.com/developers/how-to-hide-zero-quantity-items-in-dropdown-payment-field-notifications */ add_filter(‘wpforms_entry_email_data’, function ($fields, $entry, $form_data) { foreach ($fields as $field_id => $field) { // Adjust to handle ‘payment-single’, ‘payment-select’, or any other types…Continue reading

LMS Extra Link in Dashboard Left Menu

add_filter(‘tutor_dashboard/nav_items’, ‘add_some_links_dashboard’); function add_some_links_dashboard($links){ $links[‘custom_link’] = [ “title” => __(‘My link Title’, ‘tutor’), “url” => “https://youtube.com”, “icon” => “tutor-icon-file-blank-page tutor-dashboard-menu-item-icon”, ]; return $links; }Continue reading

PHPmyadmin

“name”: “phpmyadmin/phpmyadmin”, “type”: “project”, “description”: “A web interface for MySQL and MariaDB”, “keywords”: [“phpmyadmin”,”mysql”,”web”], “homepage”: “https://www.phpmyadmin.net/”, “support”: { “forum”: “https://www.phpmyadmin.net/support/”, “issues”: “https://github.com/phpmyadmin/phpmyadmin/issues”, “wiki”: “https://wiki.phpmyadmin.net/”, “docs”: “https://docs.phpmyadmin.net/”, “source”: “https://github.com/phpmyadmin/phpmyadmin” }, “license”: “GPL-2.0-only”, “authors”: [ { “name”: “The phpMyAdmin Team”, “email”: “[email protected]”,…Continue reading

Change “Howdy Admin” in Admin Bar (copy)

function wpcode_snippet_replace_howdy( $wp_admin_bar ) { // Edit the line below to set what you want the admin bar to display intead of “Howdy,”. $new_howdy = ‘Welcome,’; $my_account = $wp_admin_bar->get_node( ‘my-account’ ); if ( ! isset( $my_account->title ) ) { return;…Continue reading