Skip to content

Instantly share code, notes, and snippets.

Gangesh Matta gangesh

  • Chandigarh, India
Block or report user

Report or block gangesh

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:322dc627682e983304ea5a0861979515
This file has been truncated, but you can view the full file.
{
"name": "Ian Devling",
"imageUrl": "https://raw.githubusercontent.com/bumbeishvili/Assets/master/Projects/D3/Organization%20Chart/cto.jpg",
"area": "Corporate",
"profileUrl": "http://example.com/employee/profile",
"office": "CTO office",
"tags": "Ceo,tag1,manager,cto",
"isLoggedUser": false,
"unit": {
@gangesh
gangesh / .block
Last active Jan 26, 2020
Employees Hierarchy Chart using d3.js
View .block
license: mit
@gangesh
gangesh / wpum_conditional_role_redirect_after_login.php WP User Manager - Redirect users to different pages after login based on use role
View wpum_conditional_role_redirect_after_login.php
<?php
function wpum_set_logged_in_user( $user_login, $user ) {
if ( ! defined( 'WPUM_VERSION' ) || version_compare( WPUM_VERSION, '2.1.12', '>' ) ) {
return;
}
wp_set_current_user( $user->ID );
}
add_action( 'wp_login', 'wpum_set_logged_in_user', 10, 2 );
View affwp_custom_meta_box_example.php
<?php
/**
* Plugin Name: AffWP Custom Meta Box Example
* Plugin URI: https://affiliatewp.com
* Description: AffWP Custom Meta Box Example
* Author: AffiliateWP, LLC
* Author URI: https://affiliatewp.com
* Version: 1.0
* Text Domain: affwp-custom-meta-box-example
* */
View ReduxFramework.config.php
<?php
if ( !class_exists( "ReduxFramework" ) ) {
return;
}
if ( !class_exists( "Redux_Framework__318df089ec571809f60f6c0" ) ) {
class Redux_Framework__318df089ec571809f60f6c0 {
public function __construct( ) {
// Your base config file for Redux
You can’t perform that action at this time.