This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Replace image urls with newly uploaded images. | |
* | |
* @since 1.0.0 | |
* | |
* @param array $images Array of new images uploaded. | |
* @param array $data Array of for which images url needs to be replaced. | |
*/ | |
private function replace_images_urls( $images, $data ) { | |
$data = wp_json_encode( $data ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Post Planner Plugin Dashboard Widget | |
* | |
* Creates the dashboard widget | |
* @author C.M. Kendrick <cindy@seaserpentstudio.com> | |
* @package post-planner | |
* @version 1.5 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Plugin Name: Post Planner Mods | |
Version: 1.0 | |
Description: Post Planner Plugin Modifications | |
Author: C.M. Kendrick | |
Author URI: http://seaserpentstudio.com | |
Plugin URI: http://seaserpentstudio.com/post-planner | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* grunt-phpdocumentor | |
* https://github.com/gomoob/grunt-phpdocumentor | |
* | |
* Copyright (c) 2013 Baptiste Gaillard | |
* Licensed under the MIT license. | |
*/ | |
'use strict'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Insert new to-do item into the database | |
* @static | |
* @return mixed | |
*/ | |
public static function insert_todo() { | |
global $current_user; | |
if ( $_POST['cleverness_todo_description'] == '' ) return; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* The Sendmail script allows DesktopServer to route low-level email to a file in | |
* a self purging folder that cleans up itself after 48 hours. | |
* | |
* @package DesktopServer | |
* @since 3.8.0 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Cleverness To-Do List Plugin Frontend Classes | |
* | |
* Allows administration and viewing of to-do items on front-end | |
* @author C.M. Kendrick <cindy@cleverness.org> | |
* @package cleverness-to-do-list | |
* @version 3.2.2 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Create guest authors from meta | |
* | |
* Comment out is_object in co-authors-plus.php get_coauthor_by | |
* | |
* @since 1.0.0 | |
* | |
* @subcommand create-guests-from-meta | |
* | |
* @param $args |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$posts_per_page = 100; | |
$page = 1; | |
do { | |
$posts = get_posts( array( | |
'posts_per_page' => $posts_per_page, | |
'paged' => $page, | |
)); | |
// Do stuff |
NewerOlder