Skip to content

Instantly share code, notes, and snippets.

View anhskohbo's full-sized avatar
🎯
Focusing

Van anhskohbo

🎯
Focusing
View GitHub Profile
<?php
/**
* Allow Visual Composer update via TGM.
*/
function _allow_vc_update_via_tgm() {
global $pagenow;
if ( 'themes.php' === $pagenow && isset( $_GET['page'] ) && 'tgmpa-install-plugins' === $_GET['page'] ) {
wp_rm_filter( 'upgrader_pre_download', array( 'Vc_Updater', 'preUpgradeFilter' ) );
<?php
/*
Extends Visual Composer
More information can be found here: http://kb.wpbakery.com/index.php?title=Category:Visual_Composer
*/
// don't load directly
#
# This is the main Apache HTTP server configuration file. It contains the
# configuration directives that give the server its instructions.
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information.
# In particular, see
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html>
# for a discussion of each configuration directive.
#
# Do NOT simply read the instructions in here without understanding
# what they do. They're here only as hints or reminders. If you are unsure