Skip to content

Instantly share code, notes, and snippets.

View ibrahimkholil's full-sized avatar
🎯
Focusing

Ibrahim khalil ibrahimkholil

🎯
Focusing
  • Orangetoolz
  • House 77 (9th Floor), Road 13, Sector 10, Uttara, Dhaka -1230
  • X @IKholil
View GitHub Profile
@obiPlabon
obiPlabon / elementor-disable-all-wp-widgets.php
Last active December 20, 2020 17:39
Disable or remove elementor widget from editor panel
<?php
/**
* Disable elementor registered widget.
*
* This will disable all WordPress native widgets
*
* @param \Elementor\Widgets_Manager $widgets_manager Instance of elementor widgets manager
*
* @author obiPlabon <https://obiPlabon.im>
*
@i-like-robots
i-like-robots / functions.php
Created August 21, 2012 10:01
Wordpress custom comment form
<?php
/**
* Comment form hidden fields
*/
function comment_form_hidden_fields()
{
comment_id_fields();
if ( current_user_can( 'unfiltered_html' ) )
{
@chrisvanpatten
chrisvanpatten / README.md
Created March 7, 2012 16:27
WordPress Admin Tabs

Huh?

Believe it or not, WordPress doesn't have a fully-fleshed out common tab style for plugins or theme authors to use in metaboxes.

The style exists for categories, but it hasn't been fully adapted for the half-complete wp-tab setup. Trac ticket #17959 has a solution that not only fleshes the style but it also adds a global JavaScript file to give the wp-tab HTML some action. Until that ticket is accepted into core, this Gist adapts that code so it's available to use independently in your theme or plugin.

How?

Just enqueue the CSS and JavaScript in the admin_enqueue_scripts script hook and drop the tab HTML in a metabox. It will automatically adapt to the normal and side column widths, much like category tabs.