Skip to content

Instantly share code, notes, and snippets.

View alexanderdejong's full-sized avatar

Alexander de Jong alexanderdejong

View GitHub Profile
@ChrisButterworth
ChrisButterworth / converter.php
Created September 5, 2018 12:26
Webp converter for WordPress
<?php
namespace Converter;
use WebPConvert\WebPConvert;
class Converter
{
public $lazy = false;
public function __construct($lazy = false)
@imath
imath / tickets.php
Last active August 5, 2024 13:19
Using WP Statuses for custom Post Types.
<?php
/**
* Using WP Statuses for custom Post Types.
*
* @link http://github.com/imath/wp-statuses
*/
// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
@fabsrc
fabsrc / bandsintown.js
Created November 21, 2016 22:54
Get and display all concerts from bandsintown.com (with jQuery)
$.ajax('https://api.bandsintown.com/artists/Roosevelt/events.json', {
data: {
api_version: '2.0',
//date: '2014-01-01,2016-12-31',
app_id: 'ENTER_APPID_HERE'
},
dataType: 'jsonp',
jsonpCallback: 'createPastConcertsList',
crossDomain: true
})
@ControlledChaos
ControlledChaos / README.md
Last active June 22, 2023 07:47
Change the default WordPress post name to News and replace the Dashicon.

Change Default Posts to News

WordPress Snippet