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 | |
// Question | |
function your_theme_record_question_activity( $post_id ) { | |
$post = get_post($post_id); | |
$user_id = get_current_user_id(); | |
if(function_exists('mycred_add')) { | |
if($post->post_status == 'private') { | |
mycred_add( 'new_question', $user_id, '-20', '%plural% for Ask a Question', $post_id, array( 'ref_type' => 'post' ) ); | |
} else { | |
mycred_add( 'new_question', $user_id, '-10', '%plural% for Ask a Question', $post_id, array( 'ref_type' => 'post' ) ); |
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
if( ('ontouchstart' in window) ){ | |
$('.profile-links').bind('touchstart click', function(event) { | |
event.preventDefault(); | |
event.stopPropagation(); | |
$(this).toggleClass('open').children('ul').slideToggle(300); | |
}); | |
$('#navigation .fa').bind('touchstart click', function(event) { | |
event.preventDefault(); | |
event.stopPropagation(); |
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: DW Feed Copyright Mark | |
* Description: Protect your content with copyright. | |
* Version: 1.0 | |
* Author: DesignWall | |
* Author URI: http://www.designwall.com/ | |
* License: GPLv3 or later | |
*/ | |
function dw_feed_filter($query) { |
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: DW Minimum Comment Length | |
* Description: Set the minimum comment length and disapprove if it is too short. | |
* Version: 1.0 | |
* Author: DesignWall | |
* Author URI: http://www.designwall.com/ | |
* License: GPLv3 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 | |
/** | |
* Plugin Name: DW Post Views Counter | |
* Description: To track and display post views counter. | |
* Version: 1.0 | |
* Author: DesignWall | |
* Author URI: http://www.designwall.com/ | |
* License: GPLv3 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 | |
/** | |
* Plugin Name: DW Extra User Fields | |
* Description: Add extra fields to the user profile page. | |
* Version: 1.0 | |
* Author: DesignWall | |
* Author URI: http://www.designwall.com/ | |
* License: GPLv3 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 | |
/** | |
* Plugin Name: DW Post Content Link Replacement | |
* Description: Add target="_blank" and rel="nofollow" to links. | |
* Version: 1.0 | |
* Author: DesignWall | |
* Author URI: http://www.designwall.com/ | |
* License: GPLv3 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 | |
/** | |
* Plugin Name: DW Disable Auto-Resize Images | |
* Description: Disable WordPress’s Automatic Image Resize Function. | |
* Version: 1.0 | |
* Author: DesignWall | |
* Author URI: http://www.designwall.com/ | |
* License: GPLv3 or later | |
*/ | |
add_filter('jpeg_quality', function($arg){ return 100; }); |
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: DW Add Thumbnail to RSS Feeds | |
* Description: Add post thumbnail to RSS feed items. | |
* Version: 1.0 | |
* Author: DesignWall | |
* Author URI: http://www.designwall.com/ | |
* License: GPLv3 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 | |
/** | |
* Plugin Name: DW Disable Links in Comments | |
* Description: Convert hyperlinks in comments to plain text url. | |
* Version: 1.0 | |
* Author: DesignWall | |
* Author URI: http://www.designwall.com/ | |
* License: GPLv3 or later | |
*/ | |
remove_filter('comment_text', 'make_clickable', 9); |
NewerOlder