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

Hi, Welcome to

Wholesome Code

A.

Array Change Key Case

January 2, 2020 10:06 pmFebruary 9, 2021By Matt WatsonIn Guides, WordPress0 Comments66 Views

Array Change Key Case (array_change_key_case) is a simple function THAT allows you to make all the keys of your array uppercase or lowercase. Basic Example Composition Features and Specific Examples Further Reading Basic Example If we setup an array with…

Read more

I.

Import your Existing Website into a WordPress Install via RSS

January 18, 2019 7:42 pmFebruary 4, 2021By Matt WatsonIn Blog, WordPress0 Comments156 Views

Do you want to import an existing website into WordPress? Does that existing site provide an RSS feed? Then this is the article for you. The great news is WordPress has a default importer for RSS. Simply go to Tools…

Read more

C.

Converting React.createClass to React.Component

January 14, 2019 6:18 pmFebruary 5, 2021By Matt WatsonIn Blog, WordPress0 Comments155 Views
Converting React.createClass to React.Component

In my last article I talked about patching older versions of React to work in a modern environment. In this article I go one further and give a step by step guide to upgrading a classic React component to a…

Read more

B.

Broken React.createClass Component? Let’s Fix It!

January 14, 2019 5:20 pmFebruary 5, 2021By Matt WatsonIn Blog, WordPress0 Comments130 Views
Broken React.createClass and React.propTypes

If you are building WordPress Gutenberg Blocks (or even if you are not) you may be trying to get a third party React Component working in your build. But if it’s an older element, specifically one that uses the deprecated…

Read more

S.

Secure Blocks for WordPress Gutenberg

January 1, 2019 11:00 pmFebruary 9, 2021By Matt WatsonIn Plugins, WordPress0 Comments70 Views
Introducing Secure Blocks for WordPress Gutenberg

Secure your content in the WordPress Gutenberg editor via login or by user role, with Secure Blocks for Gutenberg. Using Secure Blocks you can add any Gutenberg block inside a secure block, and have it render only to logged in…

Read more

C.

Creating a Custom CMB2 Link Picker Control for WordPress

January 1, 2019 11:00 pmFebruary 8, 2021By Matt WatsonIn Plugins, WordPress0 Comments86 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

A.

Add Select2 as an InspectorControl in WordPress Gutenberg

August 8, 2018 2:36 pmFebruary 4, 2021By Matt WatsonIn Blog, WordPress0 Comments175 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

D.

Dynamic Variable Names in PHP

August 3, 2018 10:40 amFebruary 5, 2021By Matt WatsonIn Blog0 Comments147 Views
${$custom_variable} = 'Matt Watson';

A question I sometimes get asked is can you dynamically set the name of a variable in PHP. For example someone may have a loop, and they want the variables in that loop to have unique names. The answer is,…

Read more

I.

Improving Productivity and Focus by Removing Distractions

February 3, 2018 11:00 pmFebruary 4, 2021By Matt WatsonIn Blog, Health0 Comments60 Views

I am a remote worker. This means that I, and the majority of the people I work with also work remotely. This may be from their home, from a shared workspace, from a cafe or even in the middle of…

Read more

H.

How to Write a Personal Social Media Strategy

January 27, 2018 11:28 pmFebruary 8, 2021By Matt WatsonIn Blog, Business, Systems0 Comments68 Views
How to write a personal social media strategy

There are lots and lots of social media channels out there, and people use each of them in different ways. If you tried to post to all the social networks without automating everything, you wouldn’t have time left in 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