This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
// NOTE: I added the .js extension to this gist so it would have syntax highlighting. This file should have NO file extension | |
{ | |
// Settings | |
"passfail" : false, // Stop on first error. | |
"maxerr" : 100, // Maximum error before stopping. | |
"esversion" : 6, // allowing ES6 | |
// Predefined globals whom JSHint will ignore. |
Here I am. | |
Bam, like a cheesecake. |
<?php | |
/** | |
* Get an excerpt | |
* | |
* @param string $content The content to be transformed | |
* @param int $length The number of words | |
* @param string $more The text to be displayed at the end, if shortened | |
* @return string | |
*/ |
// Usage: | |
// get_id_by_slug('any-page-slug'); | |
function get_id_by_slug($page_slug) { | |
$page = get_page_by_path($page_slug); | |
if ($page) { | |
return $page->ID; | |
} else { | |
return null; | |
} |
<?php | |
function search_string_allocator($search_string, $safe_length = 3) | |
{ | |
$search_string = strtolower(trim($search_string)); | |
if (strlen($search_string) >= $safe_length) | |
{ | |
$removals = array | |
( |
ID post_author post_date post_date_gmt post_content post_title post_excerpt post_status comment_status ping_status post_password post_name to_ping pinged post_modified post_modified_gmt post_content_filtered post_parent guid menu_order post_type post_mime_type comment_count | |
------ ----------- ------------------- ------------------- ------------ ------------------ ------------ ----------- -------------- ----------- ------------- ----------------- ------- ------ ------------------- ------------------- --------------------- ----------- --------------------------------------------------- ---------- --------- -------------- --------------- | |
2348 4 2017-11-29 09:33:03 2017-11-29 09:33:03 Travis Test publish closed closed travis-test 2017-11-29 09:36:09 2017-11-29 09:36:09 |
namespace WP_Wrapper | |
{ | |
abstract class Options | |
{ | |
// wp-includes/option.php | |
public static function update($option, $value, $autoload = NULL) | |
{ | |
return update_option($option, $value, $autoload); | |
} |