Open External link to a new tab
This code snippet enhances a WordPress website by automatically opening external links in new tabs. When…
om-reactv4.js
// Using React Router V4 import React from "react"; import { withRouter } from "react-router"; class…
Hem
Octodesigns.se Octodesigns.se Hem Produkter Galleri Kontakta mig © 2024 Octodesigns.se All rights reserved. Hem Produkter Galleri…
Dequeue CSS files conditionally
Dequeue CSS files conditionally
Google Analytics
Tracking Script
Disable editor in Posts & Pages
Disable editor in Posts & Pages
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' );…
Maintain+ Footer Credit
jQuery("footer").append(" Site managed by Maintain+ ")
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…
MemberPress: Generate All Invoices
If the MemberPress PDF Invoice add-on is activated on the website, MemberPress will start generating invoices…
Google Search Console Verification
HTML tag
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…
Allow JS Files Upload
Allowing to upload JS files into media folder for custom special integration such as booking search…