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 | |
| /** | |
| * == About this Gist == | |
| * | |
| * Code to add to wp-config.php to enhance information available for debugging. | |
| * | |
| * You would typically add this code below the database, language and salt settings | |
| * | |
| * Oh.. and *do* make sure you change the path to the log file to a proper file path on your server (make sure it exists). | |
| * |
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 | |
| /** | |
| * Abstract class which has helper functions to get data from the database | |
| */ | |
| abstract class Base_Custom_Data | |
| { | |
| /** | |
| * The current table name | |
| * | |
| * @var boolean |
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
| filter: | |
| paths: | |
| - 'lib/*' | |
| - '/*' | |
| excluded_paths: | |
| - 'tests/*' | |
| - 'examples/*' | |
| tools: | |
| php_mess_detector: | |
| filter: |
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
| { | |
| "name": "load-google-maps", | |
| "version": "1.0.0", | |
| "main": ["./load-google-maps.js"], | |
| "author": "Glenn Baker & Gavin Foley", | |
| "dependencies": { | |
| "jquery": ">=1.5" | |
| }, | |
| "license": ["MIT", "GPL"], | |
| "keywords": ["Google Maps", "Async"] |
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 // Templates for ajax comments ?> | |
| <?php /* Wrap for comments in general should none be present */ ?> | |
| <script type="text/html" id="tmpl-comment-wrap"> | |
| <div class="comments"> | |
| <h2 class="comments-title">Comments</h2> | |
| <ol class="commentlist"></ol> | |
| </div> | |
| </script> |
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 | |
| /** | |
| * Gravity Wiz // Gravity Forms // AJAX Population | |
| * | |
| * Populate one or many fields from a remote data source (only .csv files are currently supported) based on the selected value of a field on the form. | |
| * | |
| * Example: You have multiple brands of lumber. The lumber comes in different sizes. You can store each lumber brand and its corresponding length, width, and height in a spreadsheet (csv format) and then populate this data into separate length, width and height fields on the form when a lumber brand is selectd from a drop down field on the form. | |
| * | |
| * @version 1.1 | |
| * @author David Smith <david@gravitywiz.com> |
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
| javascript | |
| ES6ValidationInspection | |
| JSAccessibilityCheckInspection | |
| JSBitwiseOperatorUsageInspection | |
| JSCheckFunctionSignaturesInspection | |
| JSClosureCompilerSyntaxInspection | |
| JSCommentMatchesSignatureInspection | |
| JSComparisonWithNaNInspection | |
| JSConsecutiveCommasInArrayLiteralInspection |
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 | |
| /** | |
| * Make sure the function does not exist before defining it | |
| */ | |
| if( ! function_exists( 'remove_class_filter' ) ){ | |
| /** | |
| * Remove Class Filter Without Access to Class Object | |
| * | |
| * In order to use the core WordPress remove_filter() on a filter added with the callback |
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 | |
| /* | |
| Use this just like `add_filter()`, and then run something that calls the filter (like | |
| `new WP_Query`, maybe). | |
| That's it. If the filter gets called again, your callback will not be. | |
| This works around the common "filter sandwich" pattern where you have to remember to | |
| call `remove_filter` again after your call. |