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: Blacklist Jetpack Modules | |
Plugin URI: https://gist.github.com/ParhamG/6494979 | |
Description: Blacklist Jetpack modules. | |
Author: Parham Ghaffarian | |
Author URI: http://parh.am | |
Version: 0.1.3.4.1 | |
*/ |
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 | |
/* | |
* The Events Calendar - Remove Events from Admin Bar for all roles, but the admin | |
* @3.11 | |
* | |
*/ | |
add_action( 'wp_before_admin_bar_render', 'removeToolbarItems' , 10 ); | |
function removeToolbarItems(){ | |
global $wp_admin_bar; | |
if(!current_user_can('manage_options')){ |
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
/** | |
* SHOW JETPACK FULL CAPTION | |
*/ | |
/* specificity hack to override Jetpack's styles */ | |
.tiled-gallery-caption.tiled-gallery-caption { | |
width: auto; | |
bottom: 2px; | |
left: 2px; | |
right: 2px; |
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
function doGet(request) { | |
if (request.parameters.url != undefined && request.parameters.url != "") { | |
var imageBlob = UrlFetchApp.fetch(request.parameters.url).getBlob(); | |
var resource = { | |
title: imageBlob.getName(), | |
mimeType: imageBlob.getContentType() | |
}; | |
var options = { | |
ocr: 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 | |
// display member list filtered by profile fields | |
function member_list_by_profile_fields( $atts ) { | |
global $bp, $wpdb; | |
$atts = shortcode_atts( array( | |
'id' => '1', | |
'YOURFIELDNAME' => 'default-value' // this can be just a number! check in bp profile field settings with inspector tool ;) | |
), $atts, 'member_list_by_profile_fields' ); |
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: Rainbow Bar! | |
*/ | |
function rainbow_bar() { | |
?> | |
<style type="text/css"> | |
#wpadminbar { |
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 | |
/** | |
* Youzify - BuddyPress Disable Posting form on Global Activity Stream. | |
*/ | |
function yzc_disable_activity_stream_wall_form( $enable ) { | |
if ( bp_is_active( 'activity' ) && bp_is_activity_directory() ) { | |
return false; | |
} |