forked from jfern/codingdayswp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfunctions.php
More file actions
37 lines (32 loc) · 1.24 KB
/
Copy pathfunctions.php
File metadata and controls
37 lines (32 loc) · 1.24 KB
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
<?php
// Link et Script du Head
function wpc_styles() {
// PROD
wp_register_script( 'js', get_template_directory_uri().'/build/assets/js/main.min.js' );
wp_register_style( 'css', get_template_directory_uri().'/build/assets/css/main.min.css' );
// LOCAL
// wp_register_script( 'js', get_template_directory_uri().'/assets/js/main.js' );
// wp_register_style( 'css', get_template_directory_uri().'/assets/css/style.css' );
// wp_register_script( 'jquery', get_template_directory_uri().'/build/assets/lib/jquery/jquery.min.js' );
// wp_enqueue_script( 'jquery' );
wp_enqueue_script( 'js' );
wp_enqueue_style( 'css' );
}
add_action('wp_enqueue_scripts', 'wpc_styles');
add_action('wp_enqueue_style', 'wpc_styles');
// Customization SweetBid
function wpc_dashboard_widget_function() {
echo
"<ul>
<li>Une création <a href='https://coding-days.com'>Coding Days !!!</a></li>
</ul>";
}
function wpc_add_dashboard_widgets() {
wp_add_dashboard_widget('wp_dashboard_widget', 'Informations techniques', 'wpc_dashboard_widget_function');
}
add_action('wp_dashboard_setup', 'wpc_add_dashboard_widgets' );
function remove_footer_admin () {
echo 'Fait avec ♥ par les Geeks de Coding Days :D';
}
add_filter('admin_footer_text', 'remove_footer_admin');
?>