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 | |
/** | |
* Install plugin administration panel. | |
* | |
* @package WordPress | |
* @subpackage Administration | |
*/ | |
// TODO route this pages via a specific iframe handler instead of the do_action below | |
if ( !defined( 'IFRAME_REQUEST' ) && isset( $_GET['tab'] ) && ( 'plugin-information' == $_GET['tab'] ) ) | |
define( 'IFRAME_REQUEST', true ); |
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 | |
/** | |
* List Table API: WP_Plugin_Install_List_Table class | |
* | |
* @package WordPress | |
* @subpackage Administration | |
* @since 3.1.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 | |
/** | |
* WordPress Plugin Install Administration API | |
* | |
* @package WordPress | |
* @subpackage Administration | |
*/ | |
/** | |
* Retrieves plugin installer pages from the WordPress.org Plugins API. |
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
/*! | |
Theme Name: Stock | |
Theme URI: http://underscores.me/ | |
Author: CrazyCafe | |
Author URI: http://www.crazycafe.net | |
Description: this is sample template | |
Version: 1.0.0 | |
License: GNU General Public License v2 or later | |
License URI: LICENSE | |
Text Domain: stock-theme |
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: Stock Toolkit | |
*/ | |
// test shortcode | |
function stock_alert_shortcode($atts, $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 | |
/* | |
Plugin Name: Stock Toolkit | |
*/ | |
add_action( 'init', 'stock_theme_custom_post' ); | |
function stock_theme_custom_post() { | |
register_post_type( 'testimonial', | |
array( |
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: Stock Toolkit | |
*/ | |
add_action( 'init', 'stock_theme_custom_post' ); | |
function stock_theme_custom_post() { | |
register_post_type( 'testimonial', | |
array( |
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 | |
if (!defined('ABSPATH')) die('-1'); | |
// Class started | |
/** | |
* | |
*/ | |
class stockVCExtendAddonClass { |
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 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', |