generated from pascalmartineau/wp-skeleton
All checks were successful
WordPress deployment / deploy (push) Successful in 9s
21 lines
717 B
PHP
21 lines
717 B
PHP
<?php
|
|
|
|
// Disable ACF / ACFE modules
|
|
add_action( 'acf/init', 'ccat_acf_init' );
|
|
function ccat_acf_init() {
|
|
acf_update_setting( 'acfe/modules/block_types', false );
|
|
acf_update_setting( 'acfe/modules/categories', false );
|
|
acf_update_setting( 'acfe/modules/forms', false );
|
|
acf_update_setting( 'acfe/modules/options_pages', false );
|
|
acf_update_setting( 'acfe/modules/post_types', false );
|
|
acf_update_setting( 'acfe/modules/taxonomies', false );
|
|
acf_update_setting( 'acfe/modules/templates', false );
|
|
}
|
|
|
|
// Google Maps API key
|
|
add_filter( 'acf/fields/google_map/api', 'ccat_acf_google_map_api' );
|
|
function ccat_acf_google_map_api( $api ) {
|
|
$api['key'] = 'AIzaSyAg30RB3c6ICeAklV_9CSJ_80uPThr4Qn8';
|
|
return $api;
|
|
}
|