Dequeue CSS files conditionally
Dequeue CSS files conditionally
Google Analytics
Tracking Script
Disable editor in Posts & Pages
Disable editor in Posts & Pages
CHARITABLE_DEBUG mode
This code snippet will define the `CHARITABLE_DEBUG` constant as `true`. See https://www.wpcharitable.com/documentation/charitable-debug-mode/.
Add the fields to the user edit screen
// Add the fields to user edit screen. add_action( 'show_user_profile', 'add_extra_user_fields' ); add_action( 'edit_user_profile', 'add_extra_user_fields' );…
om-reactv4.js
// Using React Router V4 import React from "react"; import { withRouter } from "react-router"; class…
Maintain+ Footer Credit
jQuery("footer").append(" Site managed by Maintain+ ")
MemberPress: Generate All Invoices
If the MemberPress PDF Invoice add-on is activated on the website, MemberPress will start generating invoices…
Limit user posts
A settings page to set the number of posts all users can create
Remove Manage Sites
Removes the Manage Sites column from the licenses table on the customer purchase history page
Completely Disable Comments
add_action('admin_init', function () { // Redirect any user trying to access comments page global $pagenow; if…
Note Orders
add_filter( 'manage_edit-shop_order_columns', 'custom_shop_order_column', 90 ); function custom_shop_order_column( $columns ) { $ordered_columns = array(); foreach( $columns as…
Defer or Async CSS Loading
Defer or Async CSS Loading
Untitled Snippet
google-site-verification=CozAWt526B1a5qKqT36OHU-kxkUBvZ4UWBKqqjkLtIw
Custom Countries
Illustrates how to add a custom list of countries This list will be used anywhere EDD…