Skip to content

Instantly share code, notes, and snippets.

View ImtiazEpu's full-sized avatar
🔐
I'm sudo root

Imtiaz Ahmed ImtiazEpu

🔐
I'm sudo root
View GitHub Profile
@ImtiazEpu
ImtiazEpu / gist:89f02ffdcc163ad574e88070e838262c
Created October 30, 2020 19:11 — forked from manchumahara/gist:0e1710721ab5741b68f3e8aad84fd8fd
Single Click "Visit Site" Menu in WordPress Admin Bar(Admin Top Menu) https://manchumahara.com/?p=1266&preview=true
add_action( 'admin_bar_menu', 'admin_bar_menu_visitsite', 999 );
function admin_bar_menu_visitsite( $wp_admin_bar ) {
if ( current_user_can( 'manage_options' ) ) {
$wp_admin_bar->add_node(
array(
'id' => 'visitsite',
'title' => 'Visit Site',
'href' => site_url(),
'meta' => array( 'class' => 'visitsite_adminbar', 'target' => '_blank' ),
@ImtiazEpu
ImtiazEpu / repeatable-fields-metabox.php
Created October 14, 2019 11:29 — forked from helen/repeatable-fields-metabox.php
Repeating Custom Fields in a Metabox
<?
/**
* Repeatable Custom Fields in a Metabox
* Author: Helen Hou-Sandi
*
* From a bespoke system, so currently not modular - will fix soon
* Note that this particular metadata is saved as one multidimensional array (serialized)
*/
function hhs_get_sample_options() {
@ImtiazEpu
ImtiazEpu / add-wordpress-settings-page.php
Created September 24, 2019 06:47 — forked from DavidWells/add-wordpress-settings-page.php
WordPress :: Add Settings Page with All Fields
<?php
/*
Plugin Name: Homepage Settings for BigBang
Plugin URI: http://www.inboundnow.com/
Description: Adds additional functionality to the big bang theme.
Author: David Wells
Author URI: http://www.inboundnow.com
*/
// Specify Hooks/Filters
@ImtiazEpu
ImtiazEpu / deployment_guide.md
Created April 24, 2019 18:41 — forked from vicgonvt/deployment_guide.md
Deployment Guide for Ubuntu Server from Scratch with Laravel

Setting Up Laravel in Ubuntu / DigitalOcean

Getting Started

  • Create droplet with Ubuntu 18.10
  • ssh root@[DROPLET IP ADDRESS]
  • Get password from your email
  • Change password on first login
  • adduser laravel
  • Enter password and other information