All posts by
Nonce Functions
wp_create_nonce() and wp_verify_nonce() use the logged in user ID and will not work for other users or if the user has logged out. MySiteSomeUniqueNonceNameThis field is actually defined as an action name, so you can set this differently per form on your site, so that it becomes individual form action based. However, from a basic […]
.WordPress nonces general
A true security nonce is one time use only, that is it is deleted once checked. WordPress creates a nonce that will remain valid for 12-24 hours (at least 12 hours, can be up to 24 hours) by default. While this means they can be used an unlimited amount of times within that valid period, […]
AJAX Background Post
Ensure jquery is activated In your function that hooks “wp_enqueue_scripts”, add this: Simple Working Example In your php (html) page In functions.php
System triggered WP-Cron
You can disable the default triggering of wp-cron.php for any page load and instead have it triggered using the system cron. This is based on the nifty guide here: https://tommcfarlin.com/wordpress-cron-jobs/ Disable defult wordpress cron Stop wp-cron.php being called for every page load (this is actually not a bad thing to do for heavily used sites). […]
.WordPress Cron General
WP-Cron is slightly different to a system cron in that: WP-Cron uses intervals – whereas a system cron is triggered at specific times WP-Cron only works when a page on the site is loaded – if there is no activity on the site then WP-Cron tasks will not run until there next is a vistor. […]
nofollow
nofollow links robots.txt file https://www.wpbeginner.com/wp-tutorials/how-to-optimize-your-wordpress-robots-txt-for-seo/ Do not index this page metadata To prevent most search engine web crawlers from indexing a page on your site, place the following meta tag into the section of your page:
.Border
Border thickness and width / height If the element has any border or padding, this is then added to the width and height to arrive at the size of the box that’s rendered on the screen. Border Lines Curved Corners
Cursor / Mouse Pointer
Changing cursor when over a class to be a pointer (e.g. indicate a link present)
True / False
TRUE or FALSE, but both are case-insensitive, so True or False and true or false also work no issue in PHP