Skip to content

Instantly share code, notes, and snippets.

View dbjpanda's full-sized avatar

Dibyajyoti Panda dbjpanda

View GitHub Profile
@dbjpanda
dbjpanda / custom-css.php
Created October 9, 2020 06:51 — forked from iqbalrony/custom-css.php
How to add custom css control with elementor free version.
<?php
use Elementor\Controls_Manager;
use Elementor\Element_Base;
use Elementor\Core\Files\CSS\Post;
use Elementor\Core\DynamicTags\Dynamic_CSS;
// Exit if accessed directly
if (!defined('ABSPATH')) {
exit;
@dbjpanda
dbjpanda / add-tab-to-ultimate-profile.php
Last active November 15, 2019 06:34 — forked from ultimatemember/gist:8cdaf61e7bd9de35512c
Extending Ultimate Member Profile Menu using Hooks
/* First we need to extend main profile tabs */
add_filter('um_profile_tabs', 'add_custom_profile_tab', 1000 );
function add_custom_profile_tab( $tabs ) {
$tabs['mycustomtab'] = array(
'name' => 'My custom tab',
'icon' => 'um-faicon-comments',
);
@dbjpanda
dbjpanda / gist:9e6f0d924668b23da9ba4e12a76feb63
Created September 21, 2019 20:49 — forked from ultimatemember/gist:8cdaf61e7bd9de35512c
Extending Ultimate Member Profile Menu using Hooks
/* First we need to extend main profile tabs */
add_filter('um_profile_tabs', 'add_custom_profile_tab', 1000 );
function add_custom_profile_tab( $tabs ) {
$tabs['mycustomtab'] = array(
'name' => 'My custom tab',
'icon' => 'um-faicon-comments',
);
@dbjpanda
dbjpanda / schema.php
Created August 25, 2019 22:21
Schema.org addtions for better SEO - Function for WordPress
/**
* Schema.org addtions for better SEO
* @param string Type of the element
* @return string HTML Attribute
*/
function get_schema_markup($type, $echo = false) {
if (empty($type)) return false;
@dbjpanda
dbjpanda / subdomains.go
Created June 12, 2018 23:16 — forked from ahmdrz/subdomains.go
How to use SubDomains in Golang , Subdomains With Go , http://codepodu.com/subdomains-with-golang/
//
// Please read http://codepodu.com/subdomains-with-golang/
// It's just copy and paste :smile:
//
//
// URLs :
// http://admin.localhost:8080/admin/pathone
// http://admin.localhost:8080/admin/pathtwo
// http://analytics.localhost:8080/analytics/pathone
// http://analytics.localhost:8080/analytics/pathtwo