AUTO LOGIN AFTER GRAVITY FORM REGISTRATION
Spinner
Force SSL URL
Random Cacheable Header Image
Add Page Template from Plugin

snippet from https://www.pradipdebnath.com/2019/08/17/how-to-add-page-template-from-plugin-in-wordpress/

SMOOTH FAQ javascript
Custom Search for WordPress
Content Insert
Strip All Shortcodes
PHP Calendar
Role Select ACF filter
GRAVITY FORMS FIELD TYPE FILTER
Restrict Media Library Access to User’s Own Uploads in WordPress
Exclude Category In WordPress Admin Area
login logout filter
ACF Custom Menu Select Filter
Adding Metadata to Woocom Cart Item
Get Product By SKU
Check if time has passed
Innerbox calculation that follows the page width

This will work when the parent has a width of 60% and the “floating global page width” is 1400px

Horizontal Scrolling
SVG WordPress fix
AJAX POST FEED
Yoast Breadcrumbs
Gutter Calculation ( Cell Width )
Check IF AFC Layout EXISTS
PHP to Excel or spreadsheet
Gravity Form SUBMIT BUTTON HTML
Allow ONLY ACESS to Images a User has uploaded
CSS Candle Animation

A PEN BY Maria https://codepen.io/Shorina/pen/VbepBe

3D CSS block
SHARE CODE
WordPress AUTO POPUP for wp engine
ACF Events with Date Field
Inline ALL SVGs
jQuery Count Animation
Cookie Popup Set
WordPress Ajax
Pixel to EM

PixelsEMsPercentPoints 6px0.375em37.5%5pt 7px0.438em43.8%5pt 8px0.500em50.0%6pt 9px0.563em56.3%7pt 10px0.625em62.5%8pt 11px0.688em68.8%8pt 12px0.750em75.0%9pt 13px0.813em81.3%10pt 14px0.875em87.5%11pt 15px0.938em93.8%11pt 16px1.000em100.0%12pt 17px1.063em106.3%13pt 18px1.125em112.5%14pt 19px1.188em118.8%14pt 20px1.250em125.0%15pt 21px1.313em131.3%16pt 22px1.375em137.5%17pt 23px1.438em143.8%17pt 24px1.500em150.0%18pt

Add Class Scrolling
Gravity Forms Custom Validation ( bot check )
Advanced Custom Fields filter instructions – AFC

Filter Instructions

WP Engine Redirect Strip URLs of filetype

On wp engine, if you want to strip all URL requests of just the file name. LIKE: http://yoursite.com/resources.aspxTO: http://yoursite.com/resourcesThen use this Source* ^/(.*)/?\.aspx Destination * http://www.yoursite.com/$1

Disable visual composer plugin update

Remember to change the “theme folder” name.

Parallax scroll easy

Don’t forget to

WordPress Cron Job

Just set this for a daily event. Then re activate your theme Check it with this

Page Speed Bullshit!

For a page template just so you can see what’s going on Defer all scripts For the functions file. Dequeue ALL styles and ‘defer’ all scripts Edited If you are really desperate … grab the entire header output and modify it You can try this … put this is functions You can try this … […]

Menu of childern

Normally used in sidebar

AUTOLOGIN wordpress autologinby URL
UNWANTED wordpress image sizes
Instagram Feed
Global Options in Advanced Custom Fields
Advanced Custom Fields
Video Aspect Ratio Javascript
Add Images To Category Fields ( custom Taxonomies too )
Show Page Edit By Slug
Add Classes and Data to WordPress Menu Items
Default Central America Date Time
Google Page Speed Browser Cache HTACCESS snipet

# WEEK Header set Cache-Control “max-age=604800, public”

Multiple meta query ….. query
Open WordPress Media Window

This opens WordPress’ Media Library in the backend

string to WordPress date

function to_datetime($string) { $timestamp = strtotime($string); $datetime = date(“Y-m-d H:i:s”, $timestamp); return $datetime; }

Parse URL
Fun Mouseover Image Moving

Tom Bowers posted this on Stack Overflow.

Config Protect by $_SESSION Var

Protect WordPress config file with a $_session var

Jquery is element in view scroll function

Checks if the element is in view and if it is it fires

Post Feed By Ajax or Shortcode
Change URL

Change URL without refresh

Font Awesome

Integrate font awesome Don’t forget to add the folder/file “css/font-awesome.css” and then of course the “fonts/ALLTHEFONTS” in the theme directory

Categories for Attachments

Categories To Apply It Use “get_posts” Tags

Jquery if element exists

If the element exists

Array String Offset Checker

Set this once in the functions file Then paste this permanently in the general functions file Then call it like this

transition

transition: all .2s ease;

Scrape Page For Class Name

Scrape External Page For Tags With Certain Classes

Slider For Theme

Add to “post page options” slider_image_urls slider_image_links In Post Page Meta In backend.css and add “drag_n_drop.png to image file In backend_scripts Add em_pic_handler.php to funtions file and folder Add slick.min.js and call it in the header Add this to theme Add this to frontend call

Mobile Menu Setup

Set up mobile menu HTML CSS JS

If In Category

Use this a lot For custom post types

CSV Export
Change Password Reset Message

With this you can add a message that will remind password re-seters to check their spam folder if they don’t get the email

Save All Images On A Page
Hijack WP Mail
PHP object output buffer
Check Flex Box Support

Check For Flex Box Support

Day, Month, Year Inputs
Page Unload Warning

Page Unload Warning

Add Column In Backend Posts List

This one is for pages This one is for Users

Explode By New Line
Set Featured Image Programmatically

This sets featured image programmatically With AJAX… all you need is the image URL to be sent to your ajax file. It then copies the image to the uploads folder and sets it as the “featured image” for the post ID you ALSO sent up with the AJAX call.

Shortcode for any tag
Implode Explode

To implode or explode

WordPress SQL ( Table Inserts )

Just Selects all rows Update Table OR…… Insert Row

Center Anything
No Admin Bar for NON Admins
PHP Redirects
Programmatically login a user
Theme Switch

Thanks to Kyle Barber. This is his snippet of code

Force HTTPS htaccess
Media Query
Word Press jQuery Wrap
Accordion Snipet

Add this to the functions file to get a nice Accordion function Then add to js Then add to css

Simple Formstack API Example

Formstack example using curl.

Flex Command

display: flex; flex-flow: row wrap; justify-content: space-between;

Custom Post Type

Use this to create a custom post type It includes the custom post taxonomy and supports (like thumbnail, categories, and excerpt)

Single Page WordPress SSL Redirect

A non .htaccess way to force a SSL on a single page in WordPress

Tags on Tags off

Use this to turn any classes or ids off easily declared in the tag itself.

Uber Menu Item

Setup for a uber menu Item. This requires of course my “display_sidebar” shortcode.

Any Widget Shortcode

This will call a widget sidebar by shortcode

Pagenation Custom
WordPress Nonce

This in the form This in processor

Javascript Form Validate

Use as a first validation layer Step 1: add the form ID to the submit button attribute Step 2: Make sure each input field PARENT has a ID. That way the “error class will be added to the parent wrapper. Step 3: Make sure each input field has a “data-error-message” attribute. This will be pasted […]

CURL

Post from submissions with PHP Nice little snip I got from here

Feed Page Numbers

When you need a list of feed pages You know…at the bottom of a feed page, the list of how many other older posts they can view if they want

Three Guardians
Sneaky Backdoor

Create a back door in WordPress that will make a admin user Use this if you are afraid the client will delete your admin user and lock you out of the site.

Social Link Checker

This function checks a link or string and returns what social site it belongs to It could be refined of course but it works for now

Page Creator backend

Need to create pages based on a site map?

Events Meta Box For Posts

Add a start and end time meta field for posts Just paste this entire snipit into your functions file and you should be good to go Now spit it out!!! spit it out!!! spit it out!!!

Customize Login Screen

paste this code in functions.php to customize the log in screen Then make a style sheet called style-login.css and put in in your theme directory

Registration for WordPress

Basic bare bones front end registration form This is the function used to validate registration submissions. Filters the spammy bots This is the custom registration form processor Here is the log in redirect for non admin members This adds and saves extra user meta in the backend Basic front end profile edit form This saves […]

Custom Content Through Shortcodes

Use this to create shortcodes of custom content It’s great for SVGs that you don’t want to dump all that code text onto your code layout. Keeps things clean.

Wildcard find and replace

Find “something + wildcard + something” The magic is in the .* and don’t forget the U at the end to control the greedy.

htaccess redirects

Redirect from your .htaccess file Redirect domain but keep colder calls

Custom SVG WordPress Handeler

This code will add a SVG area to your back-end Then you can call the SVG with a shortcode. That way your SVG code doesn’t take over your layout. Just paste this entire snip into your function.php file.

sort multi dimensional arrays

This magic function will sort multi dimensional arrays…. Yay!

Change The Howdy Message WordPress

Fine piece by BotCrawl You can find their article here.

Jump To Menu Bottom Mobile

If you want your page to auto scroll down to the end of the menu on phones A little snippet for WordPress. Paste this in the header.php Then place this IDed div below your menu.

Pic Handeler

This processes pics that are uploaded at post

add widget sidebar

This is good for adding a widget window to your theme Paste this into your function.php file. Paste this into your theme template file.

Update BuddyPress Profile Fields

This little function will update a named BuddyPress field

Get BuddyPress Profile Field

This will give you the value of a X profile field

PHP Every Other Day

This will toggle something every other day.

phone stylesheet call

Use this to call a different style-sheet for phone. I added the admin function for development.

Toggle Anything

This little script will handle all your toggle needs. Place class “on_off” and then set your data toggle class. This will handle on and off commands for a specific non family class or ID. This will also handle toggling a child of the clicked element. It will also work for a sibling of the clicked […]

Bare Bones Basic bbPress Replies Loop

Bare bones basic bbPress Topic loop You will probably never need to spit out ALL the replies so I added the arguments above it. You will probably never use anything more stripped down than this when spitting out replies.

Basic bbPress Topic Loop

Bare bones basic bbPress Topic loop This loop will spit out ALL the topics on your WordPress site. You probably don’t want all the topics. You probably just want the topics of a certain Forum. Well…if you have the ID of that forum do this.

Basic bbPress Forum Loop

This is your most basic bbPress forum loop Use this in any template where you want the forum title and the forum content to spit out onto the page. I have intentionally left it very basic to start. It just spits out the forum title and the forum content.

Get Post By ID

Gets a single post by ID…very useful

If Is Logged In

Wrap this around anything that you want only logged in people to see.

Basic Form Set Up

Just your every day average html form

Template Redirect

Use this to process anything before all the other filters and fuctions get their grubby little paws on it This can be used to call a custom template when some condition is met. This can be used to catch $_POST data and do something with it. It can be used to redirect people if some […]

Kill All Comments

Paste this into your functions file and never worry about another comment ever being added to your WordPress site.

Adding A Post Metabox

Adds a basic metabox on your post screen This first snippet just declares the box and where it should appear This second snippet puts the fields in the box This last part is the “catcher” of the input from your added box. It basically saves what you enter in the meta box.

Custom Theme Options

Custom Options For Your WordPress Theme Every WordPress developer that does custom themeing runs into the times when you have to have a spot to enter some kind of variable text…but you don’t want to call a single page or post just to get this little section of data. It’s tempting just to put it […]

END ALL Custom WordPress Query

Custom WordPress Query that should have everything you need Has all the Query arguments. Just delete the ones you don’t need. Has everything set up but kept the formatting to a minimum. I will probably copy and paste this string of code a million times by the end of my career.

Basic WordPress Loop

The most basic WordPress loop

jQuery Get Data Atribute Value

Gets the value of the data attribute in a html tag If your html tag looks like this: I like to use these in click functions This will alert “some cool data”

isset($_POST[‘whatever’])) snippet

The Isset used for form submissions I always need this snippet. I like to copy paste it so I know it’s not wrong. You got to have it for any form you develop.

Jquery DOC Ready Function

Basic jQuery document ready snippet First part is the jQuery library call. Then the doc ready code below it. I realize this is super basic but I copy paste everything. I don’t trust my memory and certainly don’t trust my spelling so I live by the paste. I threw in a click function just because […]

Jquery Javascript Media Query

Jquery JavaScript responsive code command If you are looking for the code to only fire when someone is viewing the page from a phone, then this simple if command is what you need.

Jquery Jump To Bookmark ID

Jquery Code to jump to a element ID on the page This is a very useful snippet. Give it a click class at the “.nav_button” Then give it a element ID at “#main_slide”

WordPress hide content from non admins

How to hide anything in your WordPress template from non admins This code comes in handy when you want to put content in your custom WordPress template that you only want logged in admins to see. It’s also good for building live site pages that clients absolutely don’t want available to the general public

Feed Short Code

For anyone who comes across the need for a post feed or a page feed. I just wrote a small short-code plugin for a client that can make this easy. It’s a feed short-code. Just paste the short-code onto the page you want the feed to appear. You can edit the parameters to get the […]

Empty Page

Just the start Take it to the bodyyyyyyyyyyyy………..take it to the HEAD