Resetting the Vendor & Pending Vendor Roles
add_filter('woocommerce_login_redirect', 'redo_roles', 10, 2); function redo_roles() { remove_role( 'pending_vendor' ); add_role( 'pending_vendor', __( 'Pending Vendor', 'wcvendors'…
How to Allow Upload SVG Files in WordPress Media Library Code | Function.php
This code is a set of WordPress filters designed to enable the upload of SVG (Scalable…
Move "Ships From" under the Product Meta, in the single product page template
Move "Ships From" under the Product Meta, in the single product page template by using 'product_ships_from'…
Combined Date – Time Format (Do something with the Local End Time) | Display Eventbrite Events
The combined date / time format appears in several layouts and typically looks like 12/02/2019, 10:00…
JP_Wp_Snippets
All different snippets I have been using
Disable Plugin & Theme Editor
Prevent users from using the Plugin & Theme file editor.
Defining Postmark Mailer Constants
This snippet will prevent users from changing WP Mail SMTP settings in your WordPress admin area…
om-angularjs.js
// Using AngularJS. var myApp = angular.module('myApp', []); myApp.run(function($rootScope) { $rootScope.$on("$locationChangeStart", function(event, next, current) { if…
om-listeners-convert.js
om{{id}}.Listeners.convert();
htmk to monsterlink
jQuery(document).ready(function($) { $('a[href="#"]').addClass("manual-optin-trigger"); $('a[href="#"]').attr("data-optin-slug", "pm6fnflhiocj7cge"); });
ADD CODE
google20ec315e3dcb494d.html
Untitled Snippet
body { font-family: Arial, sans-serif; text-align: center; margin: 20px; background-color: #f9f9f9; color: #333; } h1 {…
Modern CSS Reset
https://www.joshwcomeau.com/css/custom-css-reset/