Skip to content

Instantly share code, notes, and snippets.

:bowtie:
$var->run( troubleshoot( 'issue' ) ) ? 'SUCCESS' : explode( $var->run( self ) );

Varun Sridharan varunsridharan

:bowtie:
$var->run( troubleshoot( 'issue' ) ) ? 'SUCCESS' : explode( $var->run( self ) );
Block or report user

Report or block varunsridharan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@varunsridharan
varunsridharan / backup.sh
Created Oct 21, 2019
Freenas Auto backup to local drive in nas itself
View backup.sh
#!/bin/bash
DAY_DIR=$(date +%d)
MONTH_DIR=$(date +%m)
YEAR_DIR=$(date +%Y)
mkdir -p "${YEAR_DIR}/${MONTH_DIR}/${DAY_DIR}"
@varunsridharan
varunsridharan / function.php
Created Sep 19, 2019
WC Role Based Price Enable For All Products
View function.php
<?php
add_filter('product_rbp_status','wcrbp_enable_for_all_products',999,2);
/**
* This does not update in DB instead it forces all product's role based price enabled on runtime.
*/
function wcrbp_enable_for_all_products($status,$product_id){
return true;
}
View wponion-sample-settings.php
<?php
add_action( 'wponion_loaded', 'your_theme_slug_wponion_settings' );
function your_theme_slug_wponion_settings() {
$builder = wponion_builder();
/**
* Single Page
*/
View wponion-demo.php
<?php
$builder = new WPO\Builder();
$args = array(
'option_name' => '_wponion_demo_settings_dependency',
'framework_title' => __( 'WPOnion dependency Demo' ),
'framework_desc' => __( 'This demo to show Dependency works' ),
'theme' => 'wp_modern',
'is_single_page' => false,
'menu' => array(
We couldn’t find that file to show.
View conditions.js
/**
* Interface Builder
*/
;( function( $, underscore ) {
'use strict';
var cxInterfaceBuilder = {
component: {
showClass: 'show',
View sysinfo.md

Server Information

Host : DBH - localhost, SRV - wponion.pc

PHP Version : 7.3.5

MySQL Version : 5.7.19

Server Info : Apache/2.4.39 (Win64) OpenSSL/1.1.1b PHP/7.3.5

View shortcodes.md
shortcode Function Description
blog-name bloginfo("name") Displays the "Site Title" set in Settings > General. This data is retrieved from the "blogname" record in the wp_options table.
blog-description bloginfo("description") Displays the "Tagline" set in Settings > General. This data is retrieved from the "blogdescription" record in the wp_options table.
blog-wpurl bloginfo("wpurl") Displays the "WordPress address (URL)" set in Settings > General. This data is retrieved from the "siteurl" record in the wp_options table. Consider using blog-root_url instead, especially for multi-site configurations using paths instead of subdomains (it will return the root site not the current sub-site).
blog-root_url site_url() Return the root site, not the current sub-site.
blog-url home_url() Displays the "Site address (URL)" set in Settings > General. This data is retrieved from the "home" record in the wp_options table.
blog-
View wplocal-installer-laragon.php
<?php
define( 'PATH', __DIR__ );
define( 'MYSQL_USER', 'mysqldump' );
define( 'MYSQL_PASS', 'mysqldump' );
var_dump( $_POST );
/**
* Class WP_Installer
*
You can’t perform that action at this time.