if(android) {
$blablabla = 'android';
} elseif (htc){
$blablabla = 'htc';
} else {
$blablabla = '';
}
get_header($blablabla);
get_template_part( 'single_template', $blablabla );
get_sidebar($blablabla);
get_footer($blablabla);
add_filter( 'gettext', 'theme_change_comment_field_names', 20, 3 );
/**
* Change comment form default field names.
*
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext
*/
function theme_change_comment_field_names( $translated_text, $text, $domain ) {
if ( is_singular() ) {
switch ( $translated_text ) {
case 'Name' :
$translated_text = __( 'First Name', 'theme_text_domain' );
break;
case 'Email' :
$translated_text = __( 'Email Address', 'theme_text_domain' );
break;
}
}
return $translated_text;
}
add_action( 'wp_ajax_nopriv_my_action', 'my_action_callback' );
add_filter( 'woocommerce_checkout_fields' , 'remove_checkout_fields' );
function remove_checkout_fields( $fields ) {
unset($fields['billing']['billing_first_name']);
unset($fields['billing']['billing_last_name']);
unset($fields['billing']['billing_company']);
unset($fields['billing']['billing_address_1']);
unset($fields['billing']['billing_address_2']);
unset($fields['billing']['billing_city']);
unset($fields['billing']['billing_postcode']);
unset($fields['billing']['billing_country']);
unset($fields['billing']['billing_state']);
unset($fields['billing']['billing_phone']);
unset($fields['order']['order_comments']);
unset($fields['billing']['billing_email']);
unset($fields['account']['account_username']);
unset($fields['account']['account_password']);
unset($fields['account']['account_password-2']);
return $fields;
}