
內容簡介
Widget(Wpshare247 Addons)適用於Elementor。Wpshare247 Addons for Elementor 外掛包括像是 Blog Post、Products、Post、Page 和 Custom Post Type Grid 或 Carousel、Countdown、Contact Form 7 等 widgets 和 addons。
聯絡我們
專業網站設計 - Thiết kế website chuyên nghiệp: tbay.vn
網頁設計 - Thiết kế web trọn gói: website366.com
示範網站 - Thiết kế web giá rẻ: waoweb.vn
Wordpress 分享 - 學習 WordPress: wpshare247.com
網站內容 - 撰寫網站文章: vietbaigiare.com
外掛標籤
開發者團隊
原文外掛簡介
Widgets (Wpshare247 Addons) for Elementor. Wpshare247 Addons for Elementor plugin includes widgets and addons like Blog Post, Products, Post, Page and Custom Post Type Grid or Carousel, Countdown, Contact Form 7, Vertical Mega Menu.
Liên hệ – Contact Us
Professional website design – Thiết kế website chuyên nghiệp: tbay.vn
Web design – Thiết kế web trọn gói: website366.com
Sample Website – Thiết kế web giá rẻ: waoweb.vn
Wordpress Share – Học wordpress: wpshare247.com
Web Content – Viết bài chăm sóc web: vietbaigiare.com
Cách dùng filter thêm Custom Widget – How to use custom Widget
1. Copy folder wpshare247-custom-widgets from the plugin path:
wpshare247-elementor-addons/your-custom-sample/wpshare247-custom-widgets
into your current theme folder, like:
wp-content/themes/your-theme/wpshare247-custom-widgets
Inside that folder, you will find wpshare247_my_custom.php.
This is a sample widget file. You can use it directly, or duplicate and create more widget files.
In your theme’s functions.php, add the following code to register custom widgets:
`php
add_filter( ‘wpshare247_el_addons_custom_widgets’, function( $widgets ) {
$widgets[] = [
‘file’ => get_stylesheet_directory() . ‘/wpshare247-custom-widgets/wpshare247_my_custom.php’,
‘class’ => ‘Wpshare247_My_Custom’,
];
/*
// Example: Add more widgets if needed
$widgets[] = [
‘file’ => get_stylesheet_directory() . ‘/wpshare247-custom-widgets/wpshare247_my_custom_new1.php’,
‘class’ => ‘Wpshare247_My_Custom_New1’,
];
*/
return $widgets;
});
