-
Notifications
You must be signed in to change notification settings - Fork 1
/
functions.php
61 lines (53 loc) · 2.35 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
55
56
57
58
59
60
61
<?php
// Requires
// ***********************************************************
// PHP-Util (singole funzioni utili utilizzabili per lo sviluppo)
require get_template_directory() . '/php-util/variables.php';
require get_template_directory() . '/php-util/logJs.php';
require get_template_directory() . '/php-util/partial.php';
require get_template_directory() . '/php-util/icon.php';
require get_template_directory() . '/php-util/picture.php';
require get_template_directory() . '/php-util/components.php';
require get_template_directory() . '/php-util/menus.php';
// Plugins (plugin custom del tema)
require get_template_directory() . '/plugins/tgm.php';
// Backend (configurazione wordpress)
// -> Update wordpress admin panel and options
require get_template_directory() . '/backend/backend.php';
// -> Update wordpress front-end management
require get_template_directory() . '/backend/front.php';
// -> Update wordpress users and capabilities
require get_template_directory() . '/backend/users.php';
// -> Update wordpress menus
require get_template_directory() . '/backend/menus.php';
// -> Update wordpress custom post types
require get_template_directory() . '/backend/custom-posts.php';
// -> Set TGM required plugins
require get_template_directory() . '/backend/tgm.php';
// -> Import ACF
require get_template_directory() . '/backend/ACF.php';
// -> clean cache preload wp-rocket on save or update post
require get_template_directory() . '/backend/wp-rocket-auto-clean-cache.php';
// -> limit upload image media gallery
require get_template_directory() . '/backend/custom-limit-media-upload-size.php';
// -> custom duplicate post
require get_template_directory() . '/backend/custom-duplicate-post.php';
// -> custom login
require get_template_directory() . '/backend/custom-login.php';
// -> custom mailer
require get_template_directory() . '/backend/custom-mailer.php';
// Initialize Wideo Mailer options
// ***********************************************************
function custom_mailer_initialize() {
return array(
'contacts' => array(
'debug' => false,
'params' => ['name', 'surname', 'email', 'phone', 'object', 'message'],
'params_required' => ['name', 'surname', 'email'],
'params_attachments' => ['file'],
'mail_from' => 'From:Ideo <dev@1d3o.it>',
'mail_to' => 'test@mail.com',
'mail_subject' => 'New email from website'
),
);
}