Skip to content

Instantly share code, notes, and snippets.

@indigiti
indigiti / disable wp plugins
Created December 29, 2018 13:28 — forked from media15/disable wp plugins
Disable WordPress Plugins
define('DISALLOW_FILE_MODS',true);
@indigiti
indigiti / functions.php
Created July 31, 2018 16:30 — forked from numediaweb/functions.php
Filter WordPress admin side navigation menues
function filter_admin_menues() {
// If administrator then do nothing
if (current_user_can('activate_plugins')) return;
// Remove main menus
$main_menus_to_stay = array(
// Dashboard
'index.php',
@indigiti
indigiti / deployApplication.php
Created July 7, 2018 14:23 — forked from noor-jafri/deployApplication.php
You can use this script to handle the Git Auto Deployment on Cloudways for any number of servers and applications using Git Webhooks.
<?php
const API_KEY = "YOUR API KEY HERE";
const API_URL = "https://api.cloudways.com/api/v1";
const EMAIL = "YOUR EMAIL GOES HERE";
/* examples
const BranchName = "master";
const GitUrl = "[email protected]:user22/repo_name.git";
*/