This is my own interpretation of how I like to work, feedback welcome! Especially if my own view of how I think I like to work doesn't match your experience of how it seems I like to work!
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
jQuery(function ($) { | |
var datepickerInArgs = { | |
minDate: 1, | |
defaultDate: 0, | |
dateFormat: 'dd/mm/yy', | |
changeMonth: true, | |
changeYear: true, | |
onClose: function( dateText, inst ) { | |
var d = $.datepicker.parseDate( inst.settings.dateFormat, dateText ); |
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 | |
// ADDING CUSTOM POST TYPE | |
add_action('init', 'all_custom_post_types'); | |
function all_custom_post_types() { | |
$types = array( | |
// Pledge Items | |
array('the_type' => 'pledge', |
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( 'genesis_post_title_output', 'twp_amend_post_title_output'); | |
/** | |
* Filter Genesis H1 Post Titles | |
*/ | |
function twp_amend_post_title_output( $title ) { | |
if ( is_singular() ) | |
$title = sprintf( '<h1 class="entry-title">%s' . do_shortcode('[ssba]') . '</h1>', apply_filters( 'genesis_post_title_text', get_the_title() ) ); |
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( 'gform_address_types', 'your_plugin_slug_australian_address' ); | |
/** | |
* Set Gravity Forms custom addresses for Australia. | |
* | |
* @since 1.0.0 | |
* | |
* @param array $address_types Existing address formats. | |
* @param int $form_id Form ID. |
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 | |
// Gravity Forms Custom Addresses (Australia) | |
add_filter('gform_address_types', 'australian_address', 10, 2); | |
function australian_address( $address_types, $form_id ) { | |
$address_types['australia'] = array( | |
'label' => 'Australia', //labels the dropdown | |
'country' => 'Australia', //sets Australia as default country | |
'zip_label' => 'Post Code', //what it says | |
'state_label' => 'State', //as above |
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_action('init', 'your_plugin_slug_custom_post_types'); | |
/** | |
* Create Custom Post Types. | |
* | |
* @since 1.0.0 | |
* | |
* @param array $types New Custom Post Types. | |
* |
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_action( 'genesis_entry_content', 'your_plugin_slug_repeater_loop' ); | |
/** | |
* your_plugin_slug_repeater_loop function. | |
* | |
* @access public | |
* @return void | |
*/ |
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( 'widget_title', 'your_html_widget_title' ); | |
/** | |
* html_widget_title function. | |
* | |
* @access public | |
* @param mixed $title | |
* @return void |
NewerOlder