Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* This little class records how long it takes each WordPress action or filter
* takes to execute which gives a good indicator of what hooks are being slow.
* You can then debug those hooks to see what hooked functions are causing problems.
*
* This class does NOT time the core WordPress code that is being run between hooks.
* You could use similar code to this that doesn't have an end processor to do that.
*
<?php
/*
Plugin Name: Disable plugins when doing local dev
Description: If the WP_LOCAL_DEV constant is true, disables plugins that you specify
Version: 0.1
License: GPL version 2 or any later version
Author: Mark Jaquith
Author URI: http://coveredwebservices.com/
*/
@ev3rywh3re
ev3rywh3re / mediavine-wp-engineer-preliminary-questions.md
Last active January 23, 2020 11:52 — forked from sethta/mediavine-wp-engineer-preliminary-questions.md
Mediavine WordPress Engineer Preliminary Questions

Instructions

  • Fork this gist.
  • Modify the code samples to complete the first 2 tasks.
  • Answer the remaining 2 questions.
  • Reply back to the email you were sent with the link to your completed gist by 5:00 pm EST on Wednesday, January 22.

  1. Given an API route for retrieving a specific record, do the following:
@ev3rywh3re
ev3rywh3re / php-code-inspection.md
Created March 22, 2020 14:41 — forked from hassanjamal/php-code-inspection.md
How to install PHP code inspection tools using homebrew-php and how to integrate with JetBrain's IntelliJ or PhpStorm

#Inspection Tools with homebrew-php#

##Prerequisites##

  • Homebrew is installed

##Step 1: Installing homebrew-php##

  1. brew tap homebrew/dupes
  2. brew tap josegonzalez/homebrew-php
  3. brew install PHP53 (or other version of your choice)