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
| // Push Gravity Forms to the top of the list of plugins to make sure it's loaded before any add-ons | |
| add_action("activated_plugin", array("GFForms", "load_first")); | |
| } | |
| public static function load_first() { | |
| $plugin_path = basename(dirname(__FILE__)) . "/gravityforms.php"; | |
| $active_plugins = get_option('active_plugins'); | |
| $key = array_search($plugin_path, $active_plugins); | |
| if ($key > 0) { | |
| array_splice($active_plugins, $key, 1); |
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
| SELECT CONCAT(parents.parent_slug, '/', children.slug) AS slug | |
| FROM | |
| ( | |
| SELECT distinct t.term_id ,t.slug AS parent_slug | |
| FROM wp_term_taxonomy AS tt | |
| INNER JOIN wp_terms AS t | |
| ON tt.parent = t.term_id | |
| ) parents | |
| INNER JOIN | |
| ( |
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 ($) { | |
| "use strict"; | |
| $(function () { | |
| $("a[rel^='contactPopup']").prettyPhoto({social_tools: false}); | |
| jQuery(document).bind('gform_post_render', function(){ | |
| $.prettyPhoto.open('#data'); | |
| }); |
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
| $my_front_page = function() { | |
| if ( 'page' !== get_option( 'show_on_front' ) ) | |
| return; | |
| $homepage = get_page_by_path( 'home' ); | |
| // check that $homepage returned something | |
| return $homepage->ID; | |
| } | |
| add_filter( 'pre_option_page_on_front', $my_front_page ); |
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 mychildtheme_byline( $html ){ | |
| return ''; | |
| } | |
| add_filter('entry_byline', 'mychildtheme_byline' ); |
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 | |
| /** | |
| * Class Arr_Test | |
| */ | |
| class Arr_Test { | |
| /** | |
| * Gives us a property to play with | |
| * @var array |
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 | |
| /** | |
| * Class Arr_Test | |
| */ | |
| class Arr_Test { | |
| /** | |
| * Gives us a property to play with | |
| * @var array |
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 | |
| /** | |
| * Custom Error Handler for E_RECOVERABLE_ERROR | |
| * | |
| * http://stackoverflow.com/a/2468534/285564 | |
| * | |
| * @param $errno | |
| * @param $errstr | |
| * @param $errfile |
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 | |
| /** | |
| * Custom Error Handler for E_RECOVERABLE_ERROR | |
| * | |
| * http://stackoverflow.com/a/2468534/285564 | |
| * | |
| * @param $errno | |
| * @param $errstr | |
| * @param $errfile |
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 | |
| /** | |
| * Custom Error Handler for E_RECOVERABLE_ERROR | |
| * | |
| * http://stackoverflow.com/a/2468534/285564 | |
| * | |
| * @param $errno | |
| * @param $errstr | |
| * @param $errfile |