-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfunctions.php
54 lines (43 loc) · 1.09 KB
/
functions.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
<?php
// For composer dependencies
// require 'vendor/autoload.php';
require_once('lib/init.php');
require_once('lib/custom.php');
require_once('lib/theme-helpers.php');
require_once('lib/theme-api.php');
require_once('lib/theme-rewrite.php');
require_once('lib/theme-media.php');
/*
add_filter('acf/settings/load_json', function($paths) {
$paths = array(get_template_directory() . '/acf-json');
if(is_child_theme()){
$paths = array(
get_stylesheet_directory() . '/acf-json',
get_template_directory() . '/acf-json'
);
}
return $paths;
});
*/
/*
* Used to clear the permalinks so that the custom rewrite rules will work.
add_action( 'after_switch_theme', 'reflush_rules' );
function reflush_rules() {
global $wp_rewrite;
$wp_rewrite->flush_rules();
}
*/
/*
// update_option('siteurl','https://wordpress.local');
// update_option('home','https://wordpress.local');
global $wp_rewrite;
$wp_rewrite->flush_rules(
);
*/
/*
function my_acf_init()
{
acf_update_setting('google_api_key', '{key}');
}
add_action('acf/init', 'my_acf_init');
*/