Skip to content

Instantly share code, notes, and snippets.

View burhandodhy's full-sized avatar
🏠
Working from home

Burhan Nasir burhandodhy

🏠
Working from home
View GitHub Profile
@burhandodhy
burhandodhy / ep-woocommerce-test-shortcode.php
Created March 3, 2023 06:09
ElasticPress WooCommerce Test Shortcodes
<?php
/**
* Plugin Name: ElasticPress WooCommerce Test Shortcodes
* Plugin URI: https://github.com/10up/ElasticPress
* Description: Shortcode for WooCommerce Feature testings
* Version: 1.0
* Author: Burhan
*/
namespace ElasticPressWooCommerceTestShortcode;
@burhandodhy
burhandodhy / instagram.php
Created March 15, 2018 18:03
Get Instagram Follower Counts
<?php
$username = 'burhandodhy';
$response = @file_get_contents( "https://www.instagram.com/$username/?__a=1" );
if ( $response !== false ) {
$data = json_decode( $response, true );
if ( $data !== null ) {
$full_name = $data['graphql']['user']['full_name'];
$follower = $data['graphql']['user']['edge_followed_by']['count'];
@burhandodhy
burhandodhy / shortcode.html
Last active March 1, 2018 10:58
Shortcode
<style>
.analytify_status_box_wraper {
border: 1px solid #e2e5e8;
margin-bottom: 20px;
background: #fff;
line-height: 1.5;
font-family: 'Roboto', sans-serif;
color: #848484;
font-size: 14px;
}