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
asdf |
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 | |
add_filter( 'gfasana_task_details', 'my_custom_asana_logic', 10, 5 ); | |
function my_custom_asana_logic( $asana_task, $user_index, $project_index, $entry, $form ) { | |
/* $asana_task array format: */ | |
/* | |
Array | |
( | |
[workspace] => 1234567890123 // don't change this almost ever | |
[name] => New Task - overridden // string of text for task name | |
[notes] => long description here // string of texgt |
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
add_action( 'pre_get_posts', array( $this, 'fix_hierarchy_performance_issue' ) ); | |
function fix_hierarchy_performance_issue( $query ) { | |
if ( $query->query['post_type']=='hotspot' && $query->query['orderby']=='menu_order title' ) { | |
$query->set( 'orderby', 'menu_order title post_name' ); | |
} | |
} |
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
for plugin in `/usr/local/bin/wp plugin list --update=available --field=name`; do | |
/usr/local/bin/wp plugin update $plugin | |
git add . | |
git add -u . | |
git commit -m "Updating plugin $plugin" | |
done |
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
#!/bin/bash | |
if [[ -z $3 ]]; then | |
echo "usage $0 | |
type (plugin or theme) | |
message | |
directory" | |
exit; | |
fi | |
if [[ $1 != 'plugin' && $1 != 'theme' ]]; then | |
echo "Type is not plugin or theme! Goodbye!" |
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 | |
/** | |
* Help Scout REST controller class. | |
* | |
* @license GPL-2.0+ | |
* @link http://developer.helpscout.net/custom-apps/dynamic/ | |
*/ | |
class HelpScout_REST_Controller { | |
/** | |
* Secret key. |
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: BP Registration Options - Restrict Access Add-On | |
Plugin URI: http://tylerdigital.com | |
Description: Add additional restrictions to unapproved members (restrict access to pages/posts) | |
Version: 1.0 | |
Author: Tyler Digital | |
Author URI: http://tylerdigital.com | |
*/ |
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: Post By Email Customizations | |
Plugin URI: http://tylerdigital.com | |
Description: Handle Jetpack Post By Email – featured images, post formats, post content | |
Version: 1.0 | |
Author: Tyler Digital | |
Author URI: http://tylerdigital.com | |
*/ |
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 | |
// Fetch vars | |
$event = array( | |
'id' => $_GET['id'], | |
'title' => $_GET['title'], | |
'address' => $_GET['address'], | |
'description' => $_GET['description'], | |
'datestart' => $_GET['datestart'], | |
'dateend' => $_GET['dateend'], | |
'address' => $_GET['stage'] |
NewerOlder