Skip to content

Instantly share code, notes, and snippets.

View courtneyr-dev's full-sized avatar
🎯
Focusing

Courtney Robertson courtneyr-dev

🎯
Focusing
View GitHub Profile
@karks88
karks88 / handy-links-widget.php
Last active March 25, 2023 00:31
Handy Links Widget for WordPress
@lucatume
lucatume / README.md
Last active October 10, 2023 11:12
Generate The Events Calendar test events using wp-cli

The Events Calendar load test generation plugin

A wp-cli generator of test events.

Installation and activation

Copy the "Raw" version of the tec-load-test.php file to a file called tec-load-test.php in your WordPress installation plugins folder.
Activate the plugin, via the WordPress Plugins administration page as you would do for any other plugin.

Usage

@cliffordp
cliffordp / functions.php
Last active October 17, 2018 19:56
BCC multiple email addresses, including the site admin email address, on all Event Tickets' RSVP ticket emails so they get a copy of it too
<?php
/**
* BCC multiple email addresses, including the site admin email address, on all Event Tickets' RSVP ticket emails so they get a copy of it too
*
* Updated 2018-01-18 for Event Tickets 4.5.2+
* HOWEVER, this has been tested and we think there might be an issue with
* the version of PHPMailer (what wp_mail() uses) included with WordPress, which
* is why BCCs are not working.
* Therefore, you can use this other snippet for how to initiate a new, separate
* email message to the Organizer (but it could be customized to go to someone
@isotrope
isotrope / for-the-console.js
Last active August 29, 2015 14:14
Trigger your own WP pointers anytime!
// Open up your dev tools console and simply paste this in
// You can change the different variables to suit your needs
// You have to enqueue the script and style, though (see below)
jQuery(document).ready(function ($) {
var pointerTitle = 'My Pointer Title',
pointerContent = 'This is the content of the pointer<br />You can also add Line breaks.',
htmlPointerContent = '<h3>' + pointerTitle + '</h3><p>' + pointerContent + '</p>';
// Simply find the selector you want to target