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: wpamrk Page Children Shortcode | |
Plugin URI: http://markwilkinson.me | |
Description: A shortcode that outputs the current pages children either with or without their featured image. | |
Version: 0.1 | |
Author: Mark Wilkinson | |
Author URI: http://http://markwilkinson.me/ | |
*/ |
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
[wpmark_list_children images="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 | |
/* | |
Plugin Name: Show Admin Display Hooks | |
Plugin URI: http://github.com/wpmark/show-admin-display-hooks | |
Description: Make visible all the hooks in the WordPress admin area that are available for outputting content on different admin screens. | |
Version: 0.1 | |
Author: Mark Wilkinson | |
Author URI: http://markwilkinson.me | |
License: GPLv2 or later | |
*/ |
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 | |
/****************************************************************************************** | |
* Class sensl_whistles_widget | |
* Builds the widget for adding post content to widgetized area extending WP_Widget | |
******************************************************************************************/ | |
class MDW_Widget extends WP_Widget { | |
function mdw_widget() { | |
$widget_ops = array( |
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 wpmark_widget_tag_cloud_args( $args ) { | |
$args[ 'smallest' ] = '1.5'; | |
$args[ 'largest' ] = '1.5'; | |
$args[ 'unit' ] = 'em'; | |
return $args; | |
} |
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 | |
if ( ! isset( $_SESSION ) ) | |
session_start(); | |
function pxjn_init_session_variables() { | |
if( ! isset( $_SESSION[ 'pxjn_wpac_job_category' ] ) ) | |
$_SESSION[ 'pxjn_wpac_job_category' ] = 'zero'; | |
if( ! isset( $_SESSION[ 'pxjn_wpac_job_location' ] ) ) |
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 | |
/* output instagram widget */ | |
the_widget( | |
'null_instagram_widget', | |
array( | |
'username' => 'username', | |
'title' => '', | |
'number' => '1', | |
'size' => 'large', | |
'target' => '_blank', |
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 bct_make_whistles_public() | |
* Sets the whistles post type to be public | |
***************************************************************/ | |
function bct_make_whistles_public( $post_type, $args ) { | |
/* only proceed for the whistles post type */ | |
if ( 'whistle' != $post_type ) | |
return; |
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
object(stdClass)#386 (26) { | |
["labels"]=> | |
object(stdClass)#373 (14) { | |
["name"]=> | |
string(8) "Whistles" | |
["singular_name"]=> | |
string(7) "Whistle" | |
["add_new"]=> | |
string(7) "Add New" | |
["add_new_item"]=> |