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 | |
| /** | |
| * Add classes to each form's submit button. | |
| * | |
| * @param array $classes | |
| * | |
| * @return array | |
| */ | |
| function iweb_add_submit_button_classes( $classes ) { | |
| $classes[] = 'button medium color'; |
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 | |
| /* | |
| Plugin Name: Reverse geocode case studies | |
| Plugin URI: https://www.philwylie.co.uk/ | |
| Description: Reverse geocode case studies. | |
| Version: 1.0.0 | |
| Author: Phil Wylie | |
| Author URI: https://www.philwylie.co.uk/ | |
| License: GPL2 | |
| */ |
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 | |
| /* | |
| Plugin Name: Remove Yoast SEO meta data from products | |
| Plugin URI: https://www.iweb.co.uk/ | |
| Description: Change download URL. | |
| Version: 1.0.0 | |
| Author: iWeb | |
| Author URI: https://www.iweb.co.uk/ | |
| */ |
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 | |
| /** | |
| * Join a string with a natural language conjunction at the end. | |
| * | |
| * Useful for creating a comma separated list from array with "&" before the | |
| * last element. | |
| * | |
| * @author Daniel James | |
| * @link https://goo.gl/kQK5ke | |
| * |
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 | |
| /* | |
| Plugin Name: Convert file_list to CMB2 repeatable field groups | |
| Plugin URI: https://www.iweb.co.uk/ | |
| Description: Go through post meta by a specified key. Convert file_list data to a CMB2 repeatable field group. | |
| Version: 1.0.0 | |
| Author: iWeb | |
| Author URI: https://www.iweb.co.uk/ | |
| */ |
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
| <style> | |
| .case-studies {} | |
| .case-studies__item {} | |
| .case-studies__item--featured {} | |
| .case-studies__link {} | |
| .case-studies__image {} {} | |
| </style> | |
| <div class="case-studies"> | |
| <div class="case-studies__item case-studies__item--featured"> |
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
| <style> | |
| .list {} | |
| .list__item {} | |
| .list__item—-red {} | |
| </style> | |
| <ul class="list"> | |
| <li class="list__item">List item 1</li> | |
| <li class="list__item list__item--red">List item 2</li> | |
| <li class="list__item">List item 3</li> |
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 | |
| /* | |
| Plugin Name: Convert SMURF to CMB2 repeatable field groups | |
| Plugin URI: http://www.iweb.co.uk/ | |
| Description: Go through and zero index each SMURF array. | |
| Version: 1.0.0 | |
| Author: iWeb | |
| Author URI: http://www.iweb.co.uk/ | |
| */ |
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 | |
| /** | |
| * CMB2 Field Type: Select2 asset path | |
| * | |
| * Filter the path to front end assets (JS/CSS). | |
| */ | |
| function pw_cmb2_field_select2_asset_path() { | |
| return get_stylesheet_directory_uri() . '/metaboxes/cmb-field-select2'; | |
| } | |
| add_filter( 'pw_cmb2_field_select2_asset_path', 'pw_cmb2_field_select2_asset_path' ); |