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 | |
/** | |
* @see http://stackoverflow.com/questions/40836144/php-how-to-get-images-from-instagram-without-api-access-token | |
* You can use function file_get_conents instead wp_remote_get | |
*/ | |
function get_instagram_images( $username, $limit = 100 ){ | |
$profile_url = "https://www.instagram.com/$username/?__a=1"; | |
$iteration_url = $profile_url; |
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: Get hook info | |
Plugin URI: https://github.com/shrimp2t/Lib/blob/master/get-hook-info.php | |
Description: Show hook info at the bottom of source code. | |
Author: Matt Shrimp2t | |
Version: 1.6 | |
Author URI: https://github.com/shrimp2t | |
*/ | |
/** |
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 | |
class Auto_Save_Images{ | |
function __construct(){ | |
add_filter( 'content_save_pre',array($this,'post_save_images') ); | |
} | |
function post_save_images( $content ){ |
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 | |
function get_link_img_post( $content ){ | |
global $post; | |
preg_match_all('/src="(.*)"/Us',$content,$matches); | |
$link_img_post = $matches[1]; | |
return $link_img_post; | |
} |
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
var addParams = function( url, data ) | |
{ | |
if ( ! $.isEmptyObject(data) ) | |
{ | |
url += ( url.indexOf('?') >= 0 ? '&' : '?' ) + $.param(data); | |
} | |
return url; | |
}; |
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 | |
/** | |
* Available Font Awesome icons | |
* | |
* Get all icons from a font-awesome.css file and list in json mode | |
* | |
* @author Alessandro Gubitosi <gubi.ale@iod.io> | |
* @license http://www.gnu.org/licenses/gpl-3.0.html GNU General Public License, version 3 | |
*/ |
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: Enable Auto store thumbnail | |
Version: 1.0.0 | |
*/ | |
$stores = get_terms( array( | |
'taxonomy' => 'coupon_store', | |
'hide_empty' => false, | |
) ); | |
foreach ( $stores as $t ) { |
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 | |
** | |
* Remove items from an array | |
* @param array $array The array to manage | |
* @param void $element An array or a string of the item to remove | |
* @return array The cleaned array with resetted keys | |
*/ | |
function array_delete($array, $element) { | |
return (is_array($element)) ? array_values(array_diff($array, $element)) : array_values(array_diff($array, array($element))); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Test Algorithm </title> | |
<script type="text/javascript"> | |
// http://underscorejs.org/underscore-min.js | |
var flag = [], backupFlag = []; |
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
.in-sub-panel #customize-theme-controls .customize-pane-child.current-panel-parent, | |
#customize-theme-controls .customize-pane-child.current-section-parent { | |
-webkit-transform: translateX(-100%); | |
-ms-transform: translateX(-100%); | |
transform: translateX(-100%); | |
} |
OlderNewer