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
function pixel_wp_head_cleanup () { | |
remove_action('wp_head', 'wlwmanifest_link'); // remove wlwmanifest.xml (needed to support windows live writer) | |
remove_action('wp_head', 'wp_generator'); // remove wordpress version | |
remove_action('wp_head', 'rsd_link'); // remove really simple discovery link | |
remove_action('wp_head', 'wp_shortlink_wp_head', 10, 0 ); // remove shortlink | |
remove_action( 'wp_head', 'print_emoji_detection_script', 7 ); // remove emojis | |
remove_action( 'wp_print_styles', 'print_emoji_styles' ); // remove emojis |
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 Pixel_Core_Cpt { | |
private $cpt = array(); | |
private $cat = array(); | |
private $tax = array(); | |
public function addCpt( $singular, $plural, $slug, $args = 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
function vc_update_defaults() { | |
// Default single image to size "full" | |
$param = WPBMap::getParam( 'vc_single_image', 'img_size' ); | |
$param['value'] = 'full'; | |
vc_update_shortcode_param( 'vc_single_image', $param ); | |
// Modify button 2 styles to use custom colors | |
$colors_arr = array( | |
__( 'Custom Color #1', 'js_composer' ) => 'custom_classname_1', | |
__( 'Custom Color #2', 'js_composer' ) => 'custom_classname_2' |
NewerOlder