Instantly share code, notes, and snippets.

View torrent courses download-list
* Downloaded or downloading
View class-tgm-plugin-activation.php
* Sets install skin strings for each individual plugin.
* Checks to see if the automatic activation flag is set and uses the
* the proper strings accordingly.
* @since 2.2.0
public function add_strings() {
if ( 'update' === $this->options['install_type'] ) {
View nav-menu-exporter-importer.php
Plugin Name: Nav Menu Exporter and Importer
Description: Export and Import nav menus. Requires WordPress Importer plugin
Author: hissy, megumi themes
Version: 0.1
Text Domain: nav-menu-exporter-importer
License: GPL version 2 or later -
View Install Composer to use MAMP's

##Create an alias to MAMP's PHP installation

To do this, we can simply create an alias for our bash profile. We'll be doing this is nano, though you can do it in vim or a number of other editors as well.

Within the terminal, run:

nano ~/.bash_profile

This will open nano with the contents, at the top in a blank line add the following line:

View WordPress Custom Page Widget
`class Custom_Pages_Widgets extends WP_Widget{
public function __construct(){
$widget_ops = array(
'description' => __( "A list of your site’s Pages." )
parent::__construct( 'custom_widget_pages', __( 'Widget Pages' ), $widget_ops );
public function widget( $args, $instance ){
$select = empty( $instance['select'] ) ? '' : $instance['select'];
View Configure for Sublime Text 3
"bold_folder_labels": true,
"caret_extra_bottom": 2,
"caret_extra_top": 2,
"caret_extra_width": 3,
"caret_style": "phase",
"color_scheme": "Packages/User/SublimeLinter/Oceanic Next (SL).tmTheme",
"font_size": 14,
"tab_size": 2,
"highlight_line": true,
View Breadcrumb
*********Create a new File name class-breadcrumb.php and paste this code.....*********
if ( ! defined( 'ABSPATH' ) ) {
class Turbowp_Breadcrumb {
private $crumbs = array();
View WooCommerce Add to cart without login
Copy and paste this code on functions.php file in wordpress theme....
add_action( 'woocommerce_add_to_cart' , 'repair_woocommerce_session_add_to_cart');
function repair_woocommerce_session_add_to_cart( ){
if ( defined( 'DOING_AJAX' ) ) {
wc_setcookie( 'woocommerce_items_in_cart', 1 );
do_action( 'woocommerce_set_cart_cookies', true );
View google_font.php
Register Fonts
function studio_fonts_url() {
$font_url = '';
Translators: If there are characters in your language that are not supported
by chosen font(s), translate this to 'off'. Do not translate into your own language.
View index.html
<!doctype html>
<html ng-app>
<script src=""></script>
<script src=""></script>
<script src="todo.js"></script>
<link href="" rel="stylesheet">
<div class="container" ng-controller="Todo">