WORDPRESS: SECURITY PRACTICES FOR THEMES
Nonces are your friends First and foremost, a nonce can be defined as a “number used once” to help protect URLs and forms from misuse. WordPress nonces are made up of hash numbers and letters, but they have a limited lifetime after which they expire. They help protect against several types of attacks. For example,
Timothy
- API
- Nonce
- Plugins
- WordPress
- WordPress Plugins
REMOVE ACTIONS AND FILTERS VIA EXTERNAL CLASSES
REMOVE FILTER WordPress adds a hash (unique identifier) to the function name and saves it in the global $wp filter variable. This can be used to remove default functions from a filter hook and substitute them with anything else. The $callback and $priority arguments must correspond when the hook was added to delete it. This
Timothy
- PHP
- WordPress
CSS: NORMALIZE VS RESET
NORMALIZE Firstly, normalize css is a collection of styles based on what the creator felt would look nice and keep it consistent across browsers. For example, within an <article>, <aside>, <nav>, and <section> tag, Chrome, Safari, and Firefox render <h1> tags with a lower font size and a different margin size than independent tags. In
Timothy
- CSS
- normalize css
- reset css
- stylesheet
- UI/UX
CSS METHODS THAT ADJUST CONTENT SIZE
display:flex and display:grid With CSS you can use display: flex and display: grid are supported by all current browsers. The only thing lacking is subgrid functionality, which is only available in Firefox. Example using display: grid: Example using display: flex: It’s worth noting that in the examples that utilize both grid and flex, display:flex is
Timothy
- CSS
- css methods
- Web Design
EMOJIS-HOW TO DISABLE THEM ON WORDPRESS
PLUGIN OPTION WordPress allows you to install and activate the Disable Emojis plugin if you want to disable emoji capabilities in your WordPress. On WordPress 4.2 and later versions, just activating this plugin disables emoji support. There are no settings to adjust, and it works right out of the box. Emojis can also be disabled
Timothy
- emojis
- Plugins
- WordPress