Turn off/on any Element Pack widget by add_filter hook Easily

  • BdThemes
  • Turn off/on any Element Pack widget by add_filter hook Easily

Table Of Contents

Turn off/on any Element Pack widget by add_filter hook Easily

The WordPress add_filter Function makes it possible to erase or hide contents inside your dashboard. It can impact any widgets and plugins using a few lines of coding.

Element Pack has invested a lot of man-force to develop its code structure. It’s light as well as efficient at the same time. While the Add-filter option wasn’t important for general users, developers highly recommend this feature.

So, Element Pack has integrated the add_filter function hook with WordPress. Let us introduce you to it.

Element Pack with add_filter function

This is a feature that can only be accessed through WP backend services. So, before we start, make sure you seek a developer or know the stuff yourself.

The add_filter option sets filters around any target object through coding. Once applied, you can shut off any content within our Element Pack plugin from widgets to the dashboard itself.

This feature comes in handy to erase widgets that are not needed inside your website. Simply deactivating a widget does not erase its residual files. But with the filter hook, you can simply vanish a widget along with its residual files. It helps to reduce the total plugin size and gives a boost to the system.

Although Element Pack is lightweight and doesn’t feed on your server memory, filters keep your workspace clean and composed. That’s why we made it for developers by Bdthemes.

How to access add_filter() hook

To access the filter function, you have to open WordPress through backend services.

add_filter options

Once you are there, find Element Pack under the Plugins folder. Scroll a little below and you will see the element_pack_filters.php file. This is the structure for applying filters to elements. Each portion marked like the red box is a filter function for different contents.

Currently, we have installed the filter for Element Pack widgets and the dashboard. We will bring more changes in the future.

2121 - BdThemes

Then at the below, write the following line as shown with a red underline. The red box holds the widget name. You can put any widget name from Element Pack and turn it off completely from the dashboard. The __return_false function does the magic.

For Example

2222 - BdThemes

Take EP’s Accordion widget as an example. You can find it inside the widget menu and drag-drop it inside your page. This widget allows you to hide texts, images, and templates under foldable sub-titles.

add_filter( 'elementpack/widget/accordion', '__return_false' );

Now, insert the add_filter code like that shown above.

3333 - BdThemes

Go back to the page editor and refresh the page. You will see the Accordion widget disappeared in both menu and page.

This way, you can use the add_filter hook function for every widget from the Element pack plugin along with its dashboard.

Here the list of all filters that you can use:

// For Turn Off Dashboard (dashboard Hide Only Works With Agency Package After Activate License)
add_filter( 'elementpack/settings/dashboard', '__return_false' );
// For Turn Off Accordion Widget
add_filter( 'elementpack/widget/accordion', '__return_false' );
// For Turn Off Audio Player Widget
add_filter( 'elementpack/widget/audio_player', '__return_false' );
// For Turn Off Business Hours Widget
add_filter( 'elementpack/widget/business_hours', '__return_false' );
// For Turn Off Breadcrumbs Widget
add_filter( 'elementpack/widget/breadcrumbs', '__return_false' );
// For Turn Off Advanced Button Widget
add_filter( 'elementpack/widget/advanced_button', '__return_false' );
// For Turn Off Advanced Counter Widget
add_filter( 'elementpack/widget/advanced_counter', '__return_false' );
// For Turn Off Animated Heading Widget
add_filter( 'elementpack/widget/animated_heading', '__return_false' );
// For Turn Off Advanced Heading Widget
add_filter( 'elementpack/widget/advanced_heading', '__return_false' );
// For Turn Off Advanced Icon Box Widget
add_filter( 'elementpack/widget/advanced_icon_box', '__return_false' );
// For Turn Off Advanced Gmap Widget
add_filter( 'elementpack/widget/advanced_gmap', '__return_false' );
// For Turn Off Advanced Image Gallery Widget
add_filter( 'elementpack/widget/advanced_image_gallery', '__return_false' );
// For Turn Off Advanced Progress Bar Widget
add_filter( 'elementpack/widget/advanced_progress_bar', '__return_false' );
// For Turn Off Advanced Divider Widget
add_filter( 'elementpack/widget/advanced_divider', '__return_false' );
// For Turn Off Chart Widget
add_filter( 'elementpack/widget/chart', '__return_false' );
// For Turn Off Call Out Widget
add_filter( 'elementpack/widget/call_out', '__return_false' );
// For Turn Off Carousel Widget
add_filter( 'elementpack/widget/carousel', '__return_false' );
// For Turn Off Changelog Widget
add_filter( 'elementpack/widget/changelog', '__return_false' );
// For Turn Off Circle Menu Widget
add_filter( 'elementpack/widget/circle_menu', '__return_false' );
// For Turn Off Countdown Widget
add_filter( 'elementpack/widget/countdown', '__return_false' );
// For Turn Off Contact Form Widget
add_filter( 'elementpack/widget/contact_form', '__return_false' );
// For Turn Off Cookie Consent Widget
add_filter( 'elementpack/widget/cookie_consent', '__return_false' );
// For Turn Off Comment Widget
add_filter( 'elementpack/widget/comment', '__return_false' );
// For Turn Off Crypto Currency Widget
add_filter( 'elementpack/widget/crypto_currency', '__return_false' );
// For Turn Off Custom Gallery Widget
add_filter( 'elementpack/widget/custom_gallery', '__return_false' );
// For Turn Off Custom Carousel Widget
add_filter( 'elementpack/widget/custom_carousel', '__return_false' );
// For Turn Off Circle Info Widget
add_filter( 'elementpack/widget/circle_info', '__return_false' );
// For Turn Off Dual Button Widget
add_filter( 'elementpack/widget/dual_button', '__return_false' );
// For Turn Off Device Slider Widget
add_filter( 'elementpack/widget/device_slider', '__return_false' );
// For Turn Off Document Viewer Widget
add_filter( 'elementpack/widget/document_viewer', '__return_false' );
// For Turn Off Dropbar Widget
add_filter( 'elementpack/widget/dropbar', '__return_false' );
// For Turn Off Dark Mode Widget
add_filter( 'elementpack/widget/dark_mode', '__return_false' );
// For Turn Off Fancy Card Widget
add_filter( 'elementpack/widget/fancy_card', '__return_false' );
// For Turn Off Fancy List Widget
add_filter( 'elementpack/widget/fancy_list', '__return_false' );
// For Turn Off Fancy Slider Widget
add_filter( 'elementpack/widget/fancy_slider', '__return_false' );
// For Turn Off Fancy Icons Widget
add_filter( 'elementpack/widget/fancy_icons', '__return_false' );
// For Turn Off Fancy Tabs Widget
add_filter( 'elementpack/widget/fancy_tabs', '__return_false' );
// For Turn Off Flip Box Widget
add_filter( 'elementpack/widget/flip_box', '__return_false' );
// For Turn Off Featured Box Widget
add_filter( 'elementpack/widget/featured_box', '__return_false' );
// For Turn Off Google Reviews Widget
add_filter( 'elementpack/widget/google_reviews', '__return_false' );
// For Turn Off Helpdesk Widget
add_filter( 'elementpack/widget/helpdesk', '__return_false' );
// For Turn Off Honeycombs Widget
add_filter( 'elementpack/widget/honeycombs', '__return_false' );
// For Turn Off Hover Box Widget
add_filter( 'elementpack/widget/hover_box', '__return_false' );
// For Turn Off Hover Video Widget
add_filter( 'elementpack/widget/hover_video', '__return_false' );
// For Turn Off Image Compare Widget
add_filter( 'elementpack/widget/image_compare', '__return_false' );
// For Turn Off Image Magnifier Widget
add_filter( 'elementpack/widget/image_magnifier', '__return_false' );
// For Turn Off Image Accordion Widget
add_filter( 'elementpack/widget/image_accordion', '__return_false' );
// For Turn Off Image Expand Widget
add_filter( 'elementpack/widget/image_expand', '__return_false' );
// For Turn Off Iconnav Widget
add_filter( 'elementpack/widget/iconnav', '__return_false' );
// For Turn Off Iframe Widget
add_filter( 'elementpack/widget/iframe', '__return_false' );
// For Turn Off Instagram Widget
add_filter( 'elementpack/widget/instagram', '__return_false' );
// For Turn Off Interactive Card Widget
add_filter( 'elementpack/widget/interactive_card', '__return_false' );
// For Turn Off Lightbox Widget
add_filter( 'elementpack/widget/lightbox', '__return_false' );
// For Turn Off Lottie Image Widget
add_filter( 'elementpack/widget/lottie_image', '__return_false' );
// For Turn Off Lottie Icon Box Widget
add_filter( 'elementpack/widget/lottie_icon_box', '__return_false' );
// For Turn Off Logo Carousel Widget
add_filter( 'elementpack/widget/logo_carousel', '__return_false' );
// For Turn Off Logo Grid Widget
add_filter( 'elementpack/widget/logo_grid', '__return_false' );
// For Turn Off Marker Widget
add_filter( 'elementpack/widget/marker', '__return_false' );
// For Turn Off Member Widget
add_filter( 'elementpack/widget/member', '__return_false' );
// For Turn Off Mailchimp Widget
add_filter( 'elementpack/widget/mailchimp', '__return_false' );
// For Turn Off Modal Widget
add_filter( 'elementpack/widget/modal', '__return_false' );
// For Turn Off Navbar Widget
add_filter( 'elementpack/widget/navbar', '__return_false' );
// For Turn Off News Ticker Widget
add_filter( 'elementpack/widget/news_ticker', '__return_false' );
// For Turn Off Notification Widget
add_filter( 'elementpack/widget/notification', '__return_false' );
// For Turn Off Offcanvas Widget
add_filter( 'elementpack/widget/offcanvas', '__return_false' );
// For Turn Off Open Street Map Widget
add_filter( 'elementpack/widget/open_street_map', '__return_false' );
// For Turn Off Panel Slider Widget
add_filter( 'elementpack/widget/panel_slider', '__return_false' );
// For Turn Off Post Card Widget
add_filter( 'elementpack/widget/post_card', '__return_false' );
// For Turn Off Post Block Widget
add_filter( 'elementpack/widget/post_block', '__return_false' );
// For Turn Off Single Post Widget
add_filter( 'elementpack/widget/single_post', '__return_false' );
// For Turn Off Post Grid Widget
add_filter( 'elementpack/widget/post_grid', '__return_false' );
// For Turn Off Post Grid Tab Widget
add_filter( 'elementpack/widget/post_grid_tab', '__return_false' );
// For Turn Off Post Block Modern Widget
add_filter( 'elementpack/widget/post_block_modern', '__return_false' );
// For Turn Off Post Gallery Widget
add_filter( 'elementpack/widget/post_gallery', '__return_false' );
// For Turn Off Post Slider Widget
add_filter( 'elementpack/widget/post_slider', '__return_false' );
// For Turn Off Price List Widget
add_filter( 'elementpack/widget/price_list', '__return_false' );
// For Turn Off Price Table Widget
add_filter( 'elementpack/widget/price_table', '__return_false' );
// For Turn Off Progress Pie Widget
add_filter( 'elementpack/widget/progress_pie', '__return_false' );
// For Turn Off Post List Widget
add_filter( 'elementpack/widget/post_list', '__return_false' );
// For Turn Off Protected Content Widget
add_filter( 'elementpack/widget/protected_content', '__return_false' );
// For Turn Off Profile Card Widget
add_filter( 'elementpack/widget/profile_card', '__return_false' );
// For Turn Off Qrcode Widget
add_filter( 'elementpack/widget/qrcode', '__return_false' );
// For Turn Off Reading Progress Widget
add_filter( 'elementpack/widget/reading_progress', '__return_false' );
// For Turn Off Scrollnav Widget
add_filter( 'elementpack/widget/scrollnav', '__return_false' );
// For Turn Off Search Widget
add_filter( 'elementpack/widget/search', '__return_false' );
// For Turn Off Slider Widget
add_filter( 'elementpack/widget/slider', '__return_false' );
// For Turn Off Slideshow Widget
add_filter( 'elementpack/widget/slideshow', '__return_false' );
// For Turn Off Social Share Widget
add_filter( 'elementpack/widget/social_share', '__return_false' );
// For Turn Off Social Proof Widget
add_filter( 'elementpack/widget/social_proof', '__return_false' );
// For Turn Off Scroll Image Widget
add_filter( 'elementpack/widget/scroll_image', '__return_false' );
// For Turn Off Scroll Button Widget
add_filter( 'elementpack/widget/scroll_button', '__return_false' );
// For Turn Off Source Code Widget
add_filter( 'elementpack/widget/source_code', '__return_false' );
// For Turn Off Step Flow Widget
add_filter( 'elementpack/widget/step_flow', '__return_false' );
// For Turn Off Switcher Widget
add_filter( 'elementpack/widget/switcher', '__return_false' );
// For Turn Off Svg Image Widget
add_filter( 'elementpack/widget/svg_image', '__return_false' );
// For Turn Off Tabs Widget
add_filter( 'elementpack/widget/tabs', '__return_false' );
// For Turn Off Timeline Widget
add_filter( 'elementpack/widget/timeline', '__return_false' );
// For Turn Off Table Widget
add_filter( 'elementpack/widget/table', '__return_false' );
// For Turn Off Table Of Content Widget
add_filter( 'elementpack/widget/table_of_content', '__return_false' );
// For Turn Off Toggle Widget
add_filter( 'elementpack/widget/toggle', '__return_false' );
// For Turn Off Trailer Box Widget
add_filter( 'elementpack/widget/trailer_box', '__return_false' );
// For Turn Off Tags Cloud Widget
add_filter( 'elementpack/widget/tags_cloud', '__return_false' );
// For Turn Off Thumb Gallery Widget
add_filter( 'elementpack/widget/thumb_gallery', '__return_false' );
// For Turn Off Threesixty Product Viewer Widget
add_filter( 'elementpack/widget/threesixty_product_viewer', '__return_false' );
// For Turn Off Time Zone Widget
add_filter( 'elementpack/widget/time_zone', '__return_false' );
// For Turn Off User Login Widget
add_filter( 'elementpack/widget/user_login', '__return_false' );
// For Turn Off User Register Widget
add_filter( 'elementpack/widget/user_register', '__return_false' );
// For Turn Off Video Player Widget
add_filter( 'elementpack/widget/video_player', '__return_false' );
// For Turn Off Elementor Widget
add_filter( 'elementpack/widget/elementor', '__return_false' );
// For Turn Off Twitter Slider Widget
add_filter( 'elementpack/widget/twitter_slider', '__return_false' );
// For Turn Off Twitter Carousel Widget
add_filter( 'elementpack/widget/twitter_carousel', '__return_false' );
// For Turn Off Twitter Grid Widget
add_filter( 'elementpack/widget/twitter_grid', '__return_false' );
// For Turn Off Vertical Menu Widget
add_filter( 'elementpack/widget/vertical_menu', '__return_false' );
// For Turn Off Video Gallery Widget
add_filter( 'elementpack/widget/video_gallery', '__return_false' );
// For Turn Off Weather Widget
add_filter( 'elementpack/widget/weather', '__return_false' );

// Elementor Extendable feature 
// For Turn Off Transform Effects Widget
add_filter( 'elementpack/extend/transform_effects', '__return_false' );
// For Turn Off Tooltip Widget
add_filter( 'elementpack/extend/tooltip', '__return_false' );
// For Turn Off Image Parallax Widget
add_filter( 'elementpack/extend/image_parallax', '__return_false' );
// For Turn Off Schedule Content Widget
add_filter( 'elementpack/extend/schedule_content', '__return_false' );
// For Turn Off Particles Widget
add_filter( 'elementpack/extend/particles', '__return_false' );
// For Turn Off Section Sticky Widget
add_filter( 'elementpack/extend/section_sticky', '__return_false' );
// For Turn Off Background Parallax Widget
add_filter( 'elementpack/extend/background_parallax', '__return_false' );
// For Turn Off Parallax Effects Widget
add_filter( 'elementpack/extend/parallax_effects', '__return_false' );
// For Turn Off Equal Height Widget
add_filter( 'elementpack/extend/equal_height', '__return_false' );
// For Turn Off Visibility Control Widget
add_filter( 'elementpack/extend/visibility_control', '__return_false' );
// For Turn Off Custom Js Widget
add_filter( 'elementpack/extend/custom_js', '__return_false' );
// For Turn Off Backdrop Filter Widget
add_filter( 'elementpack/extend/backdrop_filter', '__return_false' );

// For Turn Off Calendly Widget
add_filter( 'elementpack/widget/calendly', '__return_false' );
// For Turn Off Booked Calendar Widget
add_filter( 'elementpack/widget/booked_calendar', '__return_false' );
// For Turn Off Portfolio Gallery Widget
add_filter( 'elementpack/widget/portfolio_gallery', '__return_false' );
// For Turn Off Portfolio List Widget
add_filter( 'elementpack/widget/portfolio_list', '__return_false' );
// For Turn Off Portfolio Carousel Widget
add_filter( 'elementpack/widget/portfolio_carousel', '__return_false' );
// For Turn Off Bbpress Widget
add_filter( 'elementpack/widget/bbpress', '__return_false' );
// For Turn Off Buddypress Widget
add_filter( 'elementpack/widget/buddypress', '__return_false' );
// For Turn Off Caldera Forms Widget
add_filter( 'elementpack/widget/caldera_forms', '__return_false' );
// For Turn Off Contact Form Seven Widget
add_filter( 'elementpack/widget/contact_form_seven', '__return_false' );
// For Turn Off Download Monitor Widget
add_filter( 'elementpack/widget/download_monitor', '__return_false' );
// For Turn Off Easy Digital Downloads Widget
add_filter( 'elementpack/widget/easy_digital_downloads', '__return_false' );
// For Turn Off Event Calendar Widget
add_filter( 'elementpack/widget/event_calendar', '__return_false' );
// For Turn Off Faq Widget
add_filter( 'elementpack/widget/faq', '__return_false' );
// For Turn Off Gravity Forms Widget
add_filter( 'elementpack/widget/gravity_forms', '__return_false' );
// For Turn Off Instagram Feed Widget
add_filter( 'elementpack/widget/instagram_feed', '__return_false' );
// For Turn Off Layer Slider Widget
add_filter( 'elementpack/widget/layer_slider', '__return_false' );
// For Turn Off Mailchimp For Wp Widget
add_filter( 'elementpack/widget/mailchimp_for_wp', '__return_false' );
// For Turn Off Ninja Forms Widget
add_filter( 'elementpack/widget/ninja_forms', '__return_false' );
// For Turn Off The Newsletter Widget
add_filter( 'elementpack/widget/the_newsletter', '__return_false' );
// For Turn Off Fluent Forms Widget
add_filter( 'elementpack/widget/fluent_forms', '__return_false' );
// For Turn Off Everest Forms Widget
add_filter( 'elementpack/widget/everest_forms', '__return_false' );
// For Turn Off Formidable Forms Widget
add_filter( 'elementpack/widget/formidable_forms', '__return_false' );
// For Turn Off Forminator Forms Widget
add_filter( 'elementpack/widget/forminator_forms', '__return_false' );
// For Turn Off We Forms Widget
add_filter( 'elementpack/widget/we_forms', '__return_false' );
// For Turn Off Revolution Slider Widget
add_filter( 'elementpack/widget/revolution_slider', '__return_false' );
// For Turn Off Quform Widget
add_filter( 'elementpack/widget/quform', '__return_false' );
// For Turn Off Tablepress Widget
add_filter( 'elementpack/widget/tablepress', '__return_false' );
// For Turn Off Testimonial Carousel Widget
add_filter( 'elementpack/widget/testimonial_carousel', '__return_false' );
// For Turn Off Testimonial Grid Widget
add_filter( 'elementpack/widget/testimonial_grid', '__return_false' );
// For Turn Off Testimonial Slider Widget
add_filter( 'elementpack/widget/testimonial_slider', '__return_false' );
// For Turn Off Wp Forms Widget
add_filter( 'elementpack/widget/wp_forms', '__return_false' );
// For Turn Off Give Widget
add_filter( 'elementpack/widget/give', '__return_false' );
// For Turn Off Charitable Widget
add_filter( 'elementpack/widget/charitable', '__return_false' );
// For Turn Off Tutor Lms Widget
add_filter( 'elementpack/widget/tutor_lms', '__return_false' );
// For Turn Off Woocommerce Widget
add_filter( 'elementpack/widget/woocommerce', '__return_false' );
Take advantage of fine-tuned plugins

Get Customizable Elementor Widgets to Power Up Your Website

Take advantage of fine-tuned plugins to speed up web projects without sacrificing quality. We offer a 14-days money-back guarantee.
Need any further assistance? Call Us:+880 1700 55 95 95
Our supported payment system and security badge