Skip to content

Instantly share code, notes, and snippets.

View arvindsvt's full-sized avatar

Arvind Shrivastwa arvindsvt

  • Ahmedabad
View GitHub Profile
https://a1websitepro.com/boostrap-nav-menu-wordpress/
<nav class="navbar navbar-default">
<div class="container-fluid">
<?php wp_nav_menu( array(
'container' => 'ul',
'menu_class' => 'nav navbar-nav',
'menu_id' => 'bootmenu',
'echo' => true,
'theme_location' => 'main-menu',
https://gist.github.com/braginteractive/ac0bd651e97fa02fde18cea1471d0134#file-bootstrap-walker-menu-php
https://a1websitepro.com/boostrap-nav-menu-wordpress/
https://kriesi.at/archives/improve-your-wordpress-navigation-menu-output
https://gist.github.com/braginteractive
https://pastebin.com/S0UCDUYi
https://code.tutsplus.com/tutorials/understanding-the-walker-class--wp-25401
https://codex.wordpress.org/Class_Reference/Walker
By https://pastebin.com/S0UCDUYi
https://github.com/twittem/wp-bootstrap-navwalker
OR
functions.php
#............................................................................................
<?php
https://stackoverflow.com/questions/12285694/creating-a-recursive-category-tree-function
https://stackoverflow.com/questions/12285694/creating-a-recursive-category-tree-function
https://underscores.me
https://freebiesbug.com/psd-freebies/vera-block/
https://github.com/arvindsvt/simplest-php-router
<?php
class Request {
private $method;
private $path;
function __construct($method, $path) {
$this->method = $method;
@arvindsvt
arvindsvt / gist:60bb2917507c770e4bca1a49bcb07d78
Last active September 4, 2018 14:49
call and call_user_func_array
<?php
class Address {
protected $city;
public function getCity() {
return $this->city;
}
public function setCity($city) {
$this->city=$city;
}
@arvindsvt
arvindsvt / gist:bfce273bc07ea4ef85a037f39eae9d3e
Created September 13, 2018 14:54
woocommerce-visual-hook-guide-archiveshopcat-page
https://businessbloomer.com/woocommerce-visual-hook-guide-archiveshopcat-page/
add_action( 'woocommerce_before_main_content', 'bbloomer_custom_action', 15 );
function bbloomer_custom_action() {
echo 'TEST';
}
remove_action( 'woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10 );
remove_action( 'woocommerce_before_main_content', 'woocommerce_breadcrumb', 20 );
https://www.thesoftwareguy.in/create-category-tree-php-mysql/
https://www.codexworld.com/dynamic-category-subcategory-tree-php-mysql/
<?php
$dbHost = "localhost";
$dbUsername = "root";
$dbPassword = "usbw";
$dbName = "codexworld";
// Create database connection
@arvindsvt
arvindsvt / menu in Admin WP
Created September 25, 2018 15:08
WP menu in Admin Area
<?php
/*
@package sunsettheme
========================
ADMIN PAGE
========================
*/
function sunset_add_admin_page() {