Wholesome Code Wholesome Code
Wholesome Code Wholesome Code
  • Blog
  • Guides
  • Plugins
  • About
  • Contact

WordPress

Wholesome Code > WordPress
C.

Creating a Custom CMB2 Link Picker Control for WordPress

January 1, 2019 11:00 pmFebruary 8, 2021By Matt WatsonIn Plugins, WordPress0 Comments103 Views
Creating a Custom CMB2 Control

In this tutorial I will look at how you can create a custom control to extend the functionality of CMB2 (Custom Meta Boxes 2) by WebDevStudios. I develop websites (and web applications) with the WordPress CMS (Content Management System), and when a new…

Read more

D.

Disable the WordPress Multisite Activation Step

October 10, 2018 9:30 amMarch 4, 2021By Matt WatsonIn Blog, WordPress0 Comments8 Views
Disable the WordPress Multisite (WPMU) Activation Step

So, you’ve created a WordPress Multisite installation, and you come to add your users. Simple right?  Wrong! Multisite introduces additional authentication steps, whereby a user needs to activate their account by clicking a link that has been sent to them….

Read more

A.

Add Select2 as an InspectorControl in WordPress Gutenberg

August 8, 2018 2:36 pmFebruary 4, 2021By Matt WatsonIn Blog, WordPress0 Comments192 Views
Select2 in WordPress Gutenberg

For a project I was working on I wanted to use Select2 as a Gutenberg InpectorControl to allow me apply settings to a block. This tutorial will also give you the foundation you need for getting any third party React Component…

Read more

C.

Custom TinyMCE Editor Formatting in WordPress

January 5, 2018 1:53 pmFebruary 10, 2021By Matt WatsonIn Blog, WordPress0 Comments148 Views
add_filter( 'tiny_mce_before_init', 'matt_watson_tinymce_formatting' );

Sometimes when writing a block of text using the WordPress editor, you need it to look a certain way, we usually do this by adding styles to pieces of text, but we don’t always want our clients to have to…

Read more

C.

Changing your WordPress site language (locale) dynamically

June 16, 2017 8:30 amFebruary 4, 2021By Matt WatsonIn Blog, WordPress0 Comments236 Views
add_filter( 'locale', 'matt_watson_redefine_locale', 10 );

There are some fantastic multilingual plugins for WordPress, however for one client project I needed something far more flexible, as this particular client needed to cater for several countries that each spoke several languages. In short the client needed to…

Read more

E.

Enforce Version Control in WordPress to Boost Security

June 7, 2017 8:13 amFebruary 4, 2021By Matt WatsonIn Blog, WordPress0 Comments66 Views
define( 'DISALLOW_FILE_EDIT', true );

If you have spent a long time working on your clients website, ensuring everything is in version control (such as git). Then you would be pretty gutted if your client edits a theme file, or adds a new plugin that lives…

Read more

S.

Stop Clickjacking by preventing your WordPress site from Loading in a Frame

June 6, 2017 9:00 pmFebruary 4, 2021By Matt WatsonIn Blog, WordPress0 Comments223 Views

Clickjacking is a potential security risk caused by someone loading your website inside a frame on another website and making it appear as if the website is legitimate, however they will be hijacking interactions you make with that site, such…

Read more

P.

Prevent XSS (Cross-Site Scripting) by escaping values in your WordPress templates

June 5, 2017 11:00 pmFebruary 4, 2021By Matt WatsonIn Blog, WordPress0 Comments65 Views

If you are developing a WordPress theme or plugin then it is important to make it as secure and robust as possible. One way to do this is to properly escape values that you use in your project so that…

Read more

C.

Custom conditional statements around your WordPress enqueued stylesheets

June 2, 2017 8:48 amFebruary 4, 2021By Matt WatsonIn Blog, WordPress0 Comments81 Views
add_filter( 'style_loader_tag', 'matt_watson_style_loader_tag', 10, 2 );

You may be aware that you can add conditional statements around your WordPress enqueued CSS styles (such as <!–[if gt IE 7]><link …/><![endif]–>) to load the script for certain versions of Internet Explorer. As handy as this is, it doesn’t cater for all…

Read more

P.

Prevent users from sharing login credentials in WordPress

June 1, 2017 10:36 pmFebruary 4, 2021By Matt WatsonIn Blog, WordPress0 Comments125 Views
WP_Session_Tokens::get_instance( get_current_user_id() );

As any Information Governance expert will tell you, sharing usernames and passwords is bad! Fortunately we can boost your WordPress security with this tip. Although nothing is as good as educating your users as to why they shouldn’t be sharing their…

Read more

Posts navigation

Previous 1 2 3 4 5 Next

Useful Links

  • About
  • Terms and Conditions
  • Privacy Policy
  • Cookie Policy
  • Contact

Guides

  • Create Custom Meta Boxes Using the WordPress Block Editor (Gutenberg)
  • Using Post Meta Fields to Store Attributes in the WordPress Block Editor (Gutenberg)
  • Using PHP to Render a Block in the WordPress Editor (Gutenberg)

Latest Posts

  • update_post_meta WordPress Block Editor (Gutenberg) Equivalent is editPost
  • wp_get_attachment_image WordPress Block Editor (Gutenberg) Equivalent is getMeta
  • get_post_meta WordPress Block Editor (Gutenberg) Equivalent is getEditedPostAttribute(‘meta’)
  • WP_Query WordPress Block Editor (Gutenberg) Equivalent is getEntityRecords

About

Wholesome Code: Crafting wonderfully wholesome things with WordPress.

Subscribe

© 2019 – 2021 Wholesome Code Ltd.
All rights reserved | Business No: 12196107

Menu
  • Blog
  • Guides
  • Plugins
  • About
  • Contact
Search