From fcc8c6081aad3213161a0450bb2aff98d53d57fa Mon Sep 17 00:00:00 2001 From: Your NameAntoine Date: Thu, 13 Oct 2022 15:26:53 +0200 Subject: [PATCH] udpate 13/10/22 --- includes/post_types.php | 11 ++++--- includes/shortcuts/shortcuts.php | 51 ++++++++++++++++++++++++++++++++ 2 files changed, 58 insertions(+), 4 deletions(-) diff --git a/includes/post_types.php b/includes/post_types.php index 04259ea..eeb5afb 100644 --- a/includes/post_types.php +++ b/includes/post_types.php @@ -1,8 +1,11 @@ +// ##### Syntax + + +

+ + + + +

+ + + + + + */ + +function cc_mime_types($mimes) { + $mimes['svg'] = 'image/svg+xml'; + return $mimes; +} +add_filter('upload_mimes', 'cc_mime_types'); + + + + /** ------------------------------ + INIT WIDGET +------------------------------*/ + + +function tailwind_widgets_init() { + register_sidebar( + array( + 'name' => esc_html__( 'Discover_next', 'tailwind' ), + 'id' => 'discover_next', + 'description' => esc_html__( 'Add widgets here.', 'tailwind' ), + 'before_widget' => '
', + 'after_widget' => '
', + 'before_title' => '

', + 'after_title' => '

', + ) + ); +} \ No newline at end of file