Project reminder: Our hypothetical client wishes us to create a image modal / lightbox that displays an image uploaded via the WordPress media manager and display custom meta along with that image. In Part 1 we created a simple function to output a <img> tag with the media’s id as a data attribute and in […]
Hey WordPress folks, Clock your functions!!!
$time_start = microtime( true );
// set a var here or somthing
$test = '';
$time_end = microtime( true );
$time = $time_end - $time_start;
echo "Did something $time seconds\n";