This file contains hidden or 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: Bulk Term Remover | |
Plugin URI: | |
Description: Remove tags or categories from multiple posts in the post list screen | |
Author: Chris Knowles based on plugin by Justin Stern. | |
Author URI: http://premium.wpmudev.org | |
Version: 0.1 | |
Original URL: http://www.foxrunsoftware.net/articles/wordpress/add-custom-bulk-action/ | |
Original Author: Justin Stern |
This file contains hidden or 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: Global Conditional Notification | |
Description: Provides global notifications with conditional content | |
Version: 1.0 | |
Author: Chris Knowles | |
Plugin URI: http:// | |
Author URI: http://premium.wpmudev.org/blog/author/chrisdknowles/ | |
Author: Bas Matthee |
This file contains hidden or 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
function suggsearch() { | |
$sugg = esc_html($_POST['suggestion']); | |
$post_list = new WP_Query( 's=' . $sugg ); | |
if ( $post_list->have_posts() ) : | |
// Start the Loop. | |
while ( $post_list->have_posts() ) : $post_list->the_post(); |
This file contains hidden or 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
// this function courtesu of Werx Limited | |
// http://werxltd.com/wp/2010/05/13/javascript-implementation-of-javas-string-hashcode-method/ | |
String.prototype.hashCode = function(){ | |
var hash = 0; | |
if (this.length == 0) return hash; | |
for (i = 0; i < this.length; i++) { | |
char = this.charCodeAt(i); | |
hash = ((hash<<5)-hash)+char; |
This file contains hidden or 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: Sidr - Side Menus | |
* Plugin URI: http://wpmu.org | |
* Description: Adds the Sidr plugin to WordPress. Sidr is a jQuery plugin written by Alberto Valero http://www.berriart.com/sidr/ | |
* Version: 1.0 | |
* Author: Chris Knowles | |
* Author URI: http://wpmu.org | |
* License: GPL2 | |
*/ |
This file contains hidden or 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 | |
/** | |
* Feature Name: Action Feature (handles feature and unfeature) | |
* Author: Chris Knowles | |
* Author URI: http://premium.wpmudev.org | |
* Licence: GPLv3 | |
*/ | |
add_action( 'sca_do_feature_content', 'sca_feature_content' ); |
This file contains hidden or 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
<div id="content" class="col-full"> | |
<section id="main" class="col-left"> | |
<!-- begin search form --> | |
<form action="/library" method="post"> | |
<p> | |
<label for="query"><?php _e( 'Search', 'woothemes' ); ?></label> | |
<input type="text" name="query" id="query" value="<?php echo esc_attr( $query ); ?>" /> |
This file contains hidden or 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
function ft_shortcode( $atts, $content = null){ | |
$html_element = 'span'; | |
if ( $atts == '' ) { | |
$ft_classes = 'ft-fragment'; | |
} else { |
This file contains hidden or 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: Since Last Visit | |
* Plugin URI: http://premium.wpmudev.org | |
* Description: Adds a "tag" to the title of posts published since visitor's last visit. Only works for initial page | |
* Version: 1.0 | |
* Author: Chris Knowles | |
* Author URI: http://twitter.com/ChrisKnowles | |
* License: GPL2 | |
*/ |
OlderNewer