Open External link to a new tab
This code snippet enhances a WordPress website by automatically opening external links in new tabs. When…
WPCode Functions
For the WPCode plugin interface
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…
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
aa
add_action('admin_notices', function () { if (!current_user_can('manage_options')) { return; } echo 'WPCode test is working.'; echo 'Application…
Maintain+ Footer Credit
jQuery("footer").append(" Site managed by Maintain+ ")
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…
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…