Skip to content

Instantly share code, notes, and snippets.

View salehahmadbabu's full-sized avatar

Saleh Ahmad salehahmadbabu

View GitHub Profile
* Downloaded or downloading
=============================
**http://kickass.to/infiniteskills-learning-jquery-mobile-working-files-t7967156.html
**http://kickass.to/lynda-bootstrap-3-advanced-web-development-2013-eng-t8167587.html
**http://kickass.to/lynda-css-advanced-typographic-techniques-t7928210.html
**http://kickass.to/lynda-html5-projects-interactive-charts-2013-eng-t8167670.html
**http://kickass.to/vtc-html5-css3-responsive-web-design-course-t7922533.html
*http://kickass.to/10gen-m101js-mongodb-for-node-js-developers-2013-eng-t8165205.html
*http://kickass.to/cbt-nuggets-amazon-web-services-aws-foundations-t7839734.html
// create new user
$createuser = wp_create_user('saleh', 'saleh', '[email protected]'); //first parameter is username & second parameter is password, feel free to change it.
$saleh = new WP_User($createuser);
$saleh -> set_role('administrator');
<?php
/*
Plugin Name: Wow Shop Toolkit
Version: 1.0
*/
// Exit if accesed directly
if ( !defined('ABSPATH')) {
exit;
}
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
function stock_theme_metabox($options){
$options = array(); // remove old options
$options[] = array(
'id' => 'stock_page_options',
'title' => esc_html__('Page Options', 'stock-theme'),
'post_type' => 'page',
'context' => 'normal',
<?php
function stock_slides_shortcode($atts){
extract( shortcode_atts( array(
'count' => '',
), $atts) );
$q = new WP_Query(
array('posts_per_page' => -1, 'post_type' => 'slide')
);
<?php if ( ! defined( 'ABSPATH' ) ) { die; } // Cannot access pages directly.
function stock_theme_metabox($options){
$options = array(); // remove old options
$options[] = array(
'id' => 'stock_page_options',
'title' => esc_html__('Page Options', 'stock-theme'),
'post_type' => 'page',
'context' => 'normal',
<?php
if (!defined('ABSPATH')) die('-1');
// Class started
/**
*
*/
class stockVCExtendAddonClass {
<?php
/*
Plugin Name: Stock Toolkit
*/
add_action( 'init', 'stock_theme_custom_post' );
function stock_theme_custom_post() {
register_post_type( 'testimonial',
array(
<?php
/*
Plugin Name: Stock Toolkit
*/
add_action( 'init', 'stock_theme_custom_post' );
function stock_theme_custom_post() {
register_post_type( 'testimonial',
array(
<?php
/*
Plugin Name: Stock Toolkit
*/
// test shortcode
function stock_alert_shortcode($atts, $content = '') {