Skip to content

Instantly share code, notes, and snippets.

View sxalexander's full-sized avatar
🚌
Remotely working for clients

Sam Alexander sxalexander

🚌
Remotely working for clients
View GitHub Profile
<?php
/**
* Gets the current global post type if one is set
*/
function x_get_current_post_type() {
global $post, $typenow, $current_screen;
if( $post && $post->post_type )
$post_type = $post->post_type;
elseif( $typenow )
# Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #