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

Hi, Welcome to

Wholesome Code

C.

Custom TinyMCE Editor Formatting in WordPress

January 5, 2018 1:53 pmFebruary 10, 2021By Matt WatsonIn Blog, WordPress0 Comments128 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

H.

How to make Responsive Web Design (RWD) Background Images

July 28, 2017 7:50 pmFebruary 4, 2021By Matt WatsonIn Blog0 Comments58 Views
data-default-bg="http://www.fillmurray.com/1024/576"

I work with Dave Green on a daily basis at our WordPress focused web development agency Make Do. Responsive Web Design (RWD) is a service that comes as standard with all of our products.

Read more

C.

Changing your WordPress site language (locale) dynamically

June 16, 2017 8:30 amFebruary 4, 2021By Matt WatsonIn Blog, WordPress0 Comments208 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 Comments59 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 Comments203 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 Comments59 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 Comments69 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 Comments109 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

H.

How to add items to robots.txt with WordPress

August 17, 2016 9:37 pmFebruary 4, 2021By Matt WatsonIn Blog, WordPress0 Comments108 Views
add_filter( 'robots_text', 'disallow_pdf_index', 0, 2 );

If you wasn’t aware, WordPress auto-generates its own robots.txt file, and that there is a filter that you can hook into to allow you to add your own rules to the file. The filter in question is robots_txt filter. Using this information…

Read more

T.

The Bike-Shed Effect

August 17, 2016 8:33 pmFebruary 4, 2021By Matt WatsonIn Blog0 Comments51 Views
Salvador Dali meets the Yorkshire Cost (on a bike)

Bikeshedding: Placing too much importance on trivial things. Today I found a blog post from a former Local Government colleague of mine, all about “bikeshedding”, or the Parkinson’s Law of Triviality to give it its official name. Bikeshedding is a term to explain the…

Read more

Posts navigation

Previous 1 2 3 4 5 Next

Useful Links

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

Guides

  • Install WordPress Repository Plugins and Themes with Composer
  • Install WordPress Plugins and Themes from GitHub with Composer
  • Array Chunk

Latest Posts

  • I.
    Install WordPress Repository Plugins and Themes with Composer
  • I.
    Install WordPress Plugins and Themes from GitHub with Composer
  • u.
    update_post_meta WordPress Block Editor (Gutenberg) Equivalent is editPost
  • w.
    wp_get_attachment_image WordPress Block Editor (Gutenberg) Equivalent is getMeta

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
We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Cookie settingsACCEPT
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled

Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.

CookieDurationDescription
__cfduid1 monthThe cookie is used by cdn services like CloudFare to identify individual clients behind a shared IP address and apply security settings on a per-client basis. It does not correspond to any user ID in the web application and does not store any personally identifiable information.
__cfruidsessionThis cookie is set by the provider Cloudflare. This cookie is used for load balancing and for identifying trusted web traffic.
cookielawinfo-checbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-advertisement1 yearThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Advertisement".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.

Functional

Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.

CookieDurationDescription
__cf_bm29 minutesThis cookie is set by CloudFare. The cookie is used to support Cloudfare Bot Management.
_gh_sessThis cookie is used to preserve users states across page requests.

Performance

Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.

CookieDurationDescription
d3 monthsThis cookie tracks anonymous information on how visitors use the website.
YSCsessionThis cookies is set by Youtube and is used to track the views of embedded videos.

Analytics

Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.

CookieDurationDescription
__gads1 year 24 daysThis cookie is set by Google and stored under the name dounleclick.com. This cookie is used to track how many times users see a particular advert which helps in measuring the success of the campaign and calculate the revenue generated by the campaign. These cookies can only be read from the domain that it is set on so it will not track any data while browsing through another sites.
_ga2 yearsThis cookie is installed by Google Analytics. The cookie is used to calculate visitor, session, campaign data and keep track of site usage for the site's analytics report. The cookies store information anonymously and assign a randomly generated number to identify unique visitors.
_gid1 dayThis cookie is installed by Google Analytics. The cookie is used to store information of how visitors use a website and helps in creating an analytics report of how the wbsite is doing. The data collected including the number visitors, the source where they have come from, and the pages viisted in an anonymous form.

Advertisement

Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.

CookieDurationDescription
CMID1 yearThe cookie is set by CasaleMedia. The cookie is used to collect information about the usage behavior for targeted advertising.
CMPS3 monthsThis cookie is set by Casalemedia and is used for targeted advertisement purposes.
IDE1 year 24 daysUsed by Google DoubleClick and stores information about how the user uses the website and any other advertisement before visiting the website. This is used to present users with ads that are relevant to them according to the user profile.
KTPCACOOKIE1 dayThis cookie is set by pubmatic.com for the purpose of checking if third-party cookies are enabled on the user's website.
mc1 year 1 monthThis cookie is associated with Quantserve to track anonymously how a user interact with the website.
test_cookie15 minutesThis cookie is set by doubleclick.net. The purpose of the cookie is to determine if the user's browser supports cookies.
VISITOR_INFO1_LIVE5 months 27 daysThis cookie is set by Youtube. Used to track the information of the embedded YouTube videos on a website.

Others

Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.

Other

Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.

CookieDurationDescription
_gat_gtag_UA_160855759_11 minuteNo description
_octo1 yearNo description
cf_ob_infoNo description
cf_use_obNo description
codepen_session1 monthNo description
CONSENT16 years 10 months 10 days 10 hours 25 minutesNo description
gadsTestsessionNo description
i1 yearThe purpose of the cookie is not known yet.
logged_in1 yearNo description

SAVE & ACCEPT
Powered by