This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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']; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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; | |
} |