Skip to content

Instantly share code, notes, and snippets.

View jpSimkins's full-sized avatar

Jeremy Simkins jpSimkins

  • Florida
View GitHub Profile
@jpSimkins
jpSimkins / get-page-by-slug.php
Last active March 7, 2018 16:38 — forked from matheuseduardo/get-page-by-slug.php
get_page_by_slug - wordpress
<?php
/**
* Retrieve a page given its slug.
*
* @global wpdb $wpdb WordPress database abstraction object.
*
* @param string $page_slug Page slug
* @param string $output Optional. Output type. OBJECT, ARRAY_N, or ARRAY_A.
* Default OBJECT.
* @param string|array $post_type Optional. Post type or array of post types. Default 'page'.
@jpSimkins
jpSimkins / make.sh
Created April 21, 2016 02:42 — forked from artzub/make.sh
Install JetBrains Hub + YouTrack + UpSource + Nginx
#!/bin/bash
apt-get install mc htop git unzip wget curl -y
echo
echo "====================================================="
echo " WELCOME"
echo "====================================================="
echo
echo "Hub"