This file contains 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 | |
/** | |
* Plugin Name: Bunny Hop. | |
* Plugin URI: https://prothemedesign.com | |
* Description: Swap Google fonts for Bunny Fonts to make the fonts GDPR compliant. | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
*/ |
This file contains 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 | |
/** | |
* Plugin Name: Change Featured Content Properties | |
* Plugin URI: https://prothemedesign.com | |
* Description: Change featured content properties | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
* Text Domain: pdu | |
*/ |
This file contains 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 | |
/** | |
* Plugin Name: Grandchild Theme | |
* Description: Load template files from a plugin. | |
* Author: Ben Gillbanks | |
* Version: 1.0.0 | |
* Author URI: https://prothemedesign.com | |
* | |
* @package grandchild | |
*/ |
This file contains 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 | |
/** | |
* Plugin Name: Change Archive Image Thumbnail size. | |
* Plugin URI: https://prothemedesign.com | |
* Description: Change the size of the archive image thumbnails so that they can be made full width. | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
* Text Domain: broadsheet | |
*/ |
This file contains 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 | |
// Uses: https://github.com/thewebguy/bufferapp-php/blob/master/buffer.php | |
$buffer = new BufferApp( $client_id, $client_secret, $callback_url ); | |
$buffer->set_access_token( $access_token ); | |
$buffer->go( | |
'/updates/create', | |
array( | |
'text' => $message, |
This file contains 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 | |
/** | |
* Maze.php | |
* | |
* Based on: https://github.com/chimericdream/PHP-Maze-Generator/blob/master/Maze.php | |
* This file contains the declaration for the Maze class. | |
* | |
* @file Maze.php | |
* @author Bill Parrott <[email protected]> | |
* @date 11/30/2012 |
This file contains 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 | |
/** | |
* Plugin Name: Gutenberg Image Alignment | |
* Plugin URI: https://prothemedesign.com | |
* Description: Fix image alignment classes in Gutenberg. | |
* Author: Ben Gillbanks | |
* Version: 1.0 | |
* Author URI: https://prothemedesign.com | |
* | |
* @package ptd |
This file contains 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
::-webkit-scrollbar { | |
width: 0.5rem; | |
height: 0.5rem; | |
background-color: $mid-grey; | |
border-radius: 1rem; | |
} | |
::-webkit-scrollbar-thumb { |
This file contains 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 | |
function example( $content ) { | |
/** | |
* Only add social sharing links to the_content and not content passed through get_the_excerpt. | |
*/ | |
global $wp_current_filter; | |
if ( in_array( 'get_the_excerpt', $wp_current_filter, true ) ) { |
This file contains 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 | |
/** | |
* A custom var_dump that wraps the content in pre elements so it's easier to read. | |
* Inspired by: https://twitter.com/wpmark/status/1310870151483584514 | |
* | |
* @param mixed $things A variable length list of things to be output. | |
* @return void | |
*/ | |
function bm_var_dump( ...$things ) { |
NewerOlder