Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Wordpress Plugin Development with Angular.js (2021)
Highest Rated
Rating: 4.9 out of 5(29 ratings)
6,928 students

Wordpress Plugin Development with Angular.js (2021)

How to develop a plugin for Wordpress with AngularJS 1.8
Created byGuillaume Duhan
Last updated 2/2021
English

What you'll learn

  • Wordpress plugin development with Angular
  • Inject Angular to your WP plugin
  • Architecture of a plugin using Angular
  • Create an Angular component inside a plugin
  • Link a template to a plugin
  • Add javascript libraries to an Angular component

Course content

1 section9 lectures51m total length
  • Introduction with Wordpress5:05

    A plugin is a piece of software containing a group of functions that can be added to a WordPress website. They can extend functionality or add new features to your WordPress websites. WordPress plugins are written in the PHP programming language and integrate seamlessly with WordPress.

    In this course, we are going to initialize our Wordpress instance.

  • Create our first plugin7:50

    Why We Make Plugins?

    If there’s one cardinal rule in WordPress development, it’s this: Don’t touch WordPress core. This means that you don’t edit core WordPress files to add functionality to your site. This is because WordPress overwrites core files with each update. Any functionality you want to add or modify should be done using plugins.

    WordPress plugins can be as simple or as complicated as you need them to be, depending on what you want to do. The simplest plugin is a single PHP file. The Hello Dolly plugin is an example of such a plugin. The plugin PHP file just needs a Plugin Header, a couple of PHP functions, and some hooks to attach your functions to.

    This course is about getting basis of creating a WordPress plugin.

  • Display our plugin with shortcode4:19
  • Import Angular to Wordpress6:58

    Angular has to be imported in WordPress.

    We have two solutions: integrate React directly inside our folder or fetch it by a CDN. In this lesson, I suggest you to integrate it via CDN.

    A CDN (Content Delivery Network) is a highly-distributed platform of servers that helps minimize delays in loading web page content by reducing the physical distance between the server and the user. This helps users around the world view the same high-quality content without slow loading times.

  • Create our template3:09

    To display our plugin, we need templates. In this course, I am showing you how to create a HTML template and link it to your main file index.php.

  • Create our first Angular component5:52

    "The idea behind components is to make reusable pieces of code similar to plugins, like Date Pickers, Sliders and so on. They are similar as functionality, but the difference is that there is a common ground to make the integration easier. Just like jQuery plugin platform, but you don't depend on jQuery. In fact, every component can require different versions of jQuery. Yes, you've guessed it already, jQuery is a component too." - Silvio Burcea, Stackoverflow

  • Bootstrap, Tailwindcss, Material Design... How to design your plugin6:30

    Our Cookie plugin needs to be design. In this part of the course, I am going to present you some frameworks that you can use to design your components.

  • Component logic with AngularJS11:24

    This lesson is maybe the most important lesson of the whole course.

    We link globally every functionalities of our plugin. We create functions in our Angular component that will be linked to our final template and interact between them.

  • Thank you !0:32

Requirements

  • none

Description

Wordpress Plugin Development with AngularJS

This course aims you to teach you how to code your own plugin on a Wordpress website. We are going to learn together how to start, how to activate our plugin and how to change our content dynamically.

  • At the end of this course, i'll provide you the entire plugin as files to use.

In this course, we are going to learn to use AngularJS to create our first Wordpress Plugin. Step by step, we are going to:

  • Create a local Wordpress,

  • Build our first AngularJS app,

  • Create our first Angular component,

  • Inject Angular to our HTML template,

  • Import Bootstrap as a CDN,

  • Import others scripts that we will need,

  • Show/hide a cookie banner,

  • Put/remove cookies from browser

What is AngularJS?

AngularJS is an open-source Front-end JavaScript framework.

Today, Javascripts Frameworks's goal is to augment browser-based applications with Model–View–Controller (MVC) capability. Also, they are made to reduce the amount of JavaScript needed to make web applications functional.  Nowadays, these apps are known as Single-Page Applications.

AngularJS is a structural framework for dynamic web apps. It lets you use HTML as your template language and lets you extend HTML’s syntax to express your application’s components clearly and succinctly. Data binding and dependency injection eliminate much of the code you would otherwise have to write. And it all happens within the browser, making it an ideal partner with any server technology.

Who this course is for:

  • beginners