How I work
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 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!
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 ); |
<?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', |
<?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() ) ); |
<?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. |
<?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 |
<?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. | |
* |
<?php | |
add_action( 'genesis_entry_content', 'your_plugin_slug_repeater_loop' ); | |
/** | |
* your_plugin_slug_repeater_loop function. | |
* | |
* @access public | |
* @return void | |
*/ |
<?php | |
add_filter( 'widget_title', 'your_html_widget_title' ); | |
/** | |
* html_widget_title function. | |
* | |
* @access public | |
* @param mixed $title | |
* @return void |