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 | |
/** | |
* Pre Content Save | |
* - IF headers have span backgrounds | |
* - Put that style onto the parent header | |
*/ | |
function set_header_backgrounds( $content ) { | |
if( empty( $content ) ) { | |
return $content; |
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: Word Count Tracker | |
* Description: Simply saves the word count with the post. | |
* Version: 1.0.0 | |
*/ | |
if( ! defined( 'ABSPATH' ) ) { | |
die( 'There was a HOLE here. It\'s gone now.' ); | |
} |
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
/** | |
* Generate a custom array of image attachment information | |
* | |
* @param Integer $post_id | |
* | |
* @return Array( | |
* 'ID' => 123, | |
* 'title' => 'Image Title Attribute', | |
* 'alt' => 'Image Alt Attribute', | |
* 'caption' => 'Image Caption Attribute', |