generated from pascalmartineau/wp-skeleton
feat: Initial plugins and theme
All checks were successful
WordPress deployment / deploy (push) Successful in 9s
All checks were successful
WordPress deployment / deploy (push) Successful in 9s
This commit is contained in:
20
wp-content/themes/ccat/includes/vendors/acf.php
vendored
Normal file
20
wp-content/themes/ccat/includes/vendors/acf.php
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<?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;
|
||||
}
|
||||
Reference in New Issue
Block a user