Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
100+ WordPress Code Snippets for Themes & Plugins for 2024
Rating: 4.2 out of 5(37 ratings)
710 students

100+ WordPress Code Snippets for Themes & Plugins for 2024

Save time & effort coding WordPress themes & plugins with these already typed code snippets with explanations.
Created byBruce Chamoff
Last updated 10/2024
English

What you'll learn

  • save time by adding existing WordPress code and API snippets into your plugins and themes
  • manipulate content from posts and pages
  • create your own custom post types complete with their own taxonomies and custom fields
  • displaying random posts on the fly
  • white label WordPress and replace the WP logo and replace it with your own
  • change the popular plugin Contact Form 7 and make it do amazing things that are not available out of the box

Course content

13 sections105 lectures7h 21m total length
  • Welcome. Find out the best way to use this course.3:07

    I introduce the class and tell you how it is structured. Remember, almost every video has its own code recipe in the Resources section for that lecture.

  • Green Screen Video: How to Add All The Code From This Course.2:07

    A lot of students ask me how to add the code snippets from this course, so in this green screen video, I answer it. The uneven collars are intentional. Come on! This is a green screen video. We have to have fun and my uneven collar just keeps it from getting boring. Can you watch this without laughing at my collar?

Requirements

  • Some PHP
  • Some WordPress development skills

Description

This course helps any WordPress designer and developer save time by copying and pasting WordPress code into any theme or plugin. Video lectures explain how to customize the code to make them your own.


This course will constantly evolve with new "code snippets" on everything from:

  • shortcodes

  • custom post types

  • manipulation of popular plugins including Contact Form 7

  • the customizer

  • create widgets

  • and more

This course is best for those who already know the basics of PHP, but if you are just getting into WordPress theme or plugin development, the code resources will help you add more powerful functionality to your already-existing code.

In this WordPress cookbook course, code recipes are already available for:

  • post and page content manipulation

  • automatically creating new menu locations in themes

  • custom post types

  • displaying random posts on the fly

  • manipulation of the contact form 7 plugin

  • adding a popup to your home page

  • generating a tag cloud from your posts or plugins

  • protecting your administrative back end

  • MySQL hacks such as automatically deactivating and RE-activating plugins without manual clicks.

  • and more

Please note: This course does not contain snippets for blocks or the Gutenberg system.  Snippets can be used for any WordPress installation version and the code snippets work in themes and plugins regardless of whether or not your WordPress site uses blocks.

Who this course is for:

  • PHP developers
  • Both intermediate and advanced WordPress developers who would like to save time coding.