Skip to content

Instantly share code, notes, and snippets.

@wppunk
wppunk / gist:78b5622853239ba75a106ea60235e95e
Created July 21, 2021 07:48
Deregister Elementor widgets
add_action( 'elementor/widgets/widgets_registered', 'deregister_widgets', 10000 );
/**
* Deregister widgets.
*
* @since 1.0.0
*
* @param Widgets_Manager $widgets_manager Widget manager.
*/
function deregister_widgets( Widgets_Manager $widgets_manager ): void {
@wppunk
wppunk / elementor-default-editor.php
Created February 27, 2021 16:25
Make the Elementor as default editor
<?php
/**
* Make the Elementor as default editor.
*
* @since 1.0.0
* @author wppunk
* @link https://github.com/wppunk/
*/
namespace wppunk\Elementor;
@wppunk
wppunk / class-autoload.php
Created February 20, 2020 12:23
Autoload classes, interfaces and traits by namespace prefix
<?php
/**
* Autoload classes, interfaces and traits for your namespaces.
*
* @package Autoload
*/
/**
* Class Autoload
*/
@wppunk
wppunk / class-cf7-list.php
Created January 24, 2020 23:38
Get cf7 form list
<?php
/**
* List all CF7 forms
*
* @package CF7_List
* @author Maksym Denysenko
* @link https://github.com/mdenisenko/
* @copyright Copyright © 2019
* @license GPL-2.0+
* @wordpress-theme