This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## THIS IS FOR EXPORTING TICKETS FROM YOUR FOO EVENT WOOCOMMERCE PLUGIN. | |
## I CREATED THIS BECAUSE I HAVE A DIFFERENT SYSTEM FOR USERS TO LOGIN TO AND | |
## I WOULD LIKE THE USERS TO BE ABLE TO USE THE SAME TICKET. IN THE NEW SYSTEM | |
## I REGENERATE THE QR BASED ON TICKET_ID. | |
SELECT wp00_posts.ID, wp00_posts.post_title, wp00_posts.post_type, | |
max(case when (meta_key='WooCommerceEventsTicketID') then meta_value else NULL end) as 'Ticket_ID', | |
max(case when (meta_key='WooCommerceEventsAttendeeName') then meta_value else NULL end) as 'First_Name', | |
max(case when (meta_key='WooCommerceEventsAttendeeLastName') then meta_value else NULL end) as 'Last_Name', | |
max(case when (meta_key='WooCommerceEventsAttendeeEmail') then meta_value else NULL end) as 'Email', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
in this example, we are querying users with specific roles and their billing phone numbers | |
see how we are creating dynamic columns with max and case | |
also how where are using HAVING to filter group data | |
*/ | |
SELECT wp_users.display_name, wp_users.user_email, | |
max(case when (meta_key='billing_phone') then meta_value else NULL end) as 'billing_phone', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
This is the Custom CSS for customizing Elementor Pro Image Carousel Widget. | |
You still need the Javascript code for this to work. This code goes into | |
the Image Carousel Widget under Advanced > Custom CSS. | |
Youtube tutorial here | |
https://www.youtube.com/watch?v=t3mxGYnVZ8k | |
Don't forget to update your Widget with an ID, ie my-slider, and update the | |
CSS code below with the same ID, but with the hash (#) character. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
/* | |
This is the Javascript for customizing Elementor Pro Image Carousel Widget. | |
You still need the CSS code for this to work. This code goes into an HTML | |
Widget that you put under the Carousel Widget. | |
Youtube tutorial here | |
https://www.youtube.com/watch?v=t3mxGYnVZ8k | |
Don't forget to checkout my Fiverr account for Gigs related to WordPress |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Teacher</title> | |
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.css"> | |
<script src="assets/js/jquery.js"></script> | |
<script src="assets/js/bootstrap.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE teachers | |
(teacher_id INT AUTO_INCREMENT PRIMARY KEY, | |
formal_title VARCHAR(25), | |
name_first VARCHAR(100), | |
name_last VARCHAR(100), | |
email_address VARCHAR(255)); | |
INSERT INTO teachers | |
(formal_title, name_first, name_last, email_address) | |
VALUES |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
JWT TOKEN LOGIN -- Automatically logs a user in a WordPress site with JWT | |
This script allows you to log a user into a WordPress site automatically | |
based on his/her JSON Web Token (JWT). This assumes that you use the | |
following plugin and set it up properly on your WordPress site to enable | |
JWT authentication via REST API. | |
JWT Authentication for WP REST API |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
_____ __ __ _____ ____ ___ ____ ___ ___ ___ | |
/ ___/| | |/ ___/| \ / _]| \ | \ / _]| \ | |
( \_ | | ( \_ | o ) [_ | _ || \ / [_ | \ | |
\__ || | |\__ || _/ _]| | || D || _]| D | | |
/ \ || : |/ \ || | | [_ | | || || [_ | | | |
\ || |\ || | | || | || || || | | |
\___| \__,_| \___||__| |_____||__|__||_____||_____||_____| | |