Skip to content

Instantly share code, notes, and snippets.

View Attaulla9's full-sized avatar
💻
Focusing

Attaullla Faniband Attaulla9

💻
Focusing
View GitHub Profile
@Attaulla9
Attaulla9 / r-debug.php
Created June 29, 2021 17:49 — forked from Rarst/r-debug.php
R Debug (set of dump helpers for debug)
<?php
/*
Plugin Name: R Debug
Description: Set of dump helpers for debug.
Author: Andrey "Rarst" Savchenko
Author URI: https://www.rarst.net/
License: MIT
*/
@Attaulla9
Attaulla9 / FixedHeaderOrFooterMenu.md
Created July 16, 2021 05:14 — forked from johnnyopao/FixedHeaderOrFooterMenu.md
Centered fixed header or footer menu on Unbounce (Set placement to 'before body end tag')
@Attaulla9
Attaulla9 / IndianStates.json
Created August 27, 2021 11:37 — forked from shiva0704/IndianStates.json
Latest Indian States and Union Territories in JSON format Raw - Updated
{
"AN":"Andaman and Nicobar Islands",
"AP":"Andhra Pradesh",
"AR":"Arunachal Pradesh",
"AS":"Assam",
"BR":"Bihar",
"CG":"Chandigarh",
"CH":"Chhattisgarh",
"DN":"Dadra and Nagar Haveli",
"DD":"Daman and Diu",
@Attaulla9
Attaulla9 / wl-api.php
Created October 2, 2021 06:00 — forked from ivandoric/wl-api.php
WordPress Rest API Custom Endpoints Video Tutorials Notes - Check out the videos: https://www.youtube.com/watch?v=C2twS9ArdCI and https://www.youtube.com/watch?v=76sJL9fd12Y
<?php
/**
* Plugin Name: Custom API
* Plugin URI: http://chrushingit.com
* Description: Crushing it!
* Version: 1.0
* Author: Art Vandelay
* Author URI: http://watch-learn.com
*/
@Attaulla9
Attaulla9 / wp-query-ref.php
Created October 2, 2021 16:59 — forked from luetkemj/wp-query-ref.php
WP: Query $args
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.github.io
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php
*/
@Attaulla9
Attaulla9 / wc-prevent-checkout-for-cart-with-specific-category.php
Created December 22, 2021 06:47 — forked from bekarice/wc-prevent-checkout-for-cart-with-specific-category.php
Prevents checkout if the WooCommerce cart only contains items from a specific category
<?php // only copy this line if needed
/**
* Renders a notice and prevents checkout if the cart
* only contains products in a specific category
*/
function sv_wc_prevent_checkout_for_category() {
// set the slug of the category for which we disallow checkout
$category = 'clothing';
{
"meta": {
"theme": "elegant"
},
"basics": {
"name": "Thomas Davis",
"label": "Web Developer",
"image": "https://avatars0.githubusercontent.com/u/416209?s=460&u=38f220a2c9c658141804f881c334c594eb1642ac&v=4",
"summary": "I’m a full stack web developer who can build apps from the ground up. I've worked mostly at startups so I am use to wearing many hats. I am a very product focussed developer who priotizes user feedback first and foremost. I'm generally very flexible when investigating new roles. ",
"website": "https://lordajax.com",
@Attaulla9
Attaulla9 / functions.php
Created January 7, 2022 11:09 — forked from cliffordp/functions.php
Automatically login a single WordPress user upon arrival to a specific page.
<?php
/**
* Automatically login a single WordPress user upon arrival to a specific page.
*
* Redirect to home page once logged in and prevent viewing of the login page.
* Compatible with WordPress 3.9.1+
* Updated 2014-07-18 to resolve WP_DEBUG notice: "get_userdatabylogin is deprecated since version 3.3! Use get_user_by('login') instead."
* Updated 2019-07-09 to reformat code, pass 2nd parameter to `do_action()`, and hook into priority 1.
*