Google Maps API links
"Using the Google Maps API v3 Links to examples of various useful things and documentation Using the Google Maps API V2 Links to examples of various useful things and documentation"
read »
We have some config files on my companies app which I need to change for my local install to work. I was using git update-index --assume-unchanged to ignore my local changes. This allowed me to switch between branches and commit The downfall to this is that this file hasn’t been touched in months and I … Continued
First issued in 2004 by the Open Web Application Security Project, the now-famous OWASP Top 10 Vulnerabilities list (included at the bottom of the article) is probably the closest that the development community has ever come to a set of commandments on how to keep their products secure.
read »Advanced Custom Fields hidden field does not have a default value input.
Add one by implementing the code below. Personally I was using this to mark a registration form for a particular user type.
<?php
// add default value to hidden field
add_action('acf/render_field_settings/type=hidden', 'tb_hidden_default_render_field_settings');
add_filter('acf/prepare_field/type=hidden', 'tb_hidden_default_prepare_field');
function tb_hidden_default_render_field_settings($field){
acf_render_field_setting( $field, array(
'label' => __('Default Value'),
'instructions' => '',
'name' => 'hidden_default',
'type' => 'text',
'ui' => 1,
), false);
}
function tb_hidden_default_prepare_field( $field ) {
if( empty($field['hidden_default']) ) return $field;
$field['value'] = $field["hidden_default"];
$field['label'] = '';
return $field;
}