This file contains hidden or 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
from oauth2client.service_account import ServiceAccountCredentials | |
import httplib2 | |
import json | |
import pandas as pd | |
# https://developers.google.com/search/apis/indexing-api/v3/prereqs#header_2 | |
JSON_KEY_FILE = "json_key_file_downloaded_after_creating_your_google_service_account_see_above_details_on_how_to_do.json" | |
SCOPES = ["https://www.googleapis.com/auth/indexing"] |
This file contains hidden or 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
import urllib | |
from wordpress_xmlrpc import Client, WordPressPost | |
from wordpress_xmlrpc.methods import posts | |
import xmlrpclib | |
from wordpress_xmlrpc.compat import xmlrpc_client | |
from wordpress_xmlrpc.methods import media, posts | |
import os | |
########################### Read Me First ############################### | |
''' | |
------------------------------------------In DETAIL-------------------------------- |
This file contains hidden or 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
if( !function_exists( 'load_terms_by_ajax' ) ) { | |
function load_terms_by_ajax(){ | |
$ky = isset( $_GET['q'] ) && !empty( $_GET['q'] ) ? $_GET['q'] : ''; | |
$term_name = isset( $_GET['key'] ) && !empty( $_GET['key'] ) ? $_GET['key'] : ''; | |
$taxonomy_sarch_args = array('hide_empty' => true,'orderby' => 'name','order' => 'ASC', 'name__like' => $ky, ); | |
$tax_obj = get_terms( $term_name, $taxonomy_sarch_args ); | |
$arr['results'] = array(); | |
if( count( $tax_obj ) > 0 ){ | |
foreach( $tax_obj as $item ){ |
This file contains hidden or 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
jQuery(document).ready(function($){ | |
$(document).on('click', '.wpt-favorite-button', function(){ | |
var $this = $(this); | |
var product_id = $(this).data('product_id'); | |
var user_id = $(this).data('user_id'); | |
var status = $(this).attr('data-status'); | |
$('.message-favorite-button-' + product_id).html("Loading..."); | |
$.ajax({ | |
type: 'POST', | |
url: myAjax.ajaxurl,// + get_data, |
This file contains hidden or 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
if( !function_exists( 'fav_table_wrapper_class' ) ){ | |
function fav_table_wrapper_class($wrapper_class_arr, $table_ID){ | |
if( $table_ID == get_option( 'favorite_table_id' ) ){ | |
array_push($wrapper_class_arr, 'fav_table_list'); | |
} | |
return $wrapper_class_arr; | |
} | |
add_filter('wpto_wrapper_tag_class_arr', 'fav_table_wrapper_class', 10, 2 ); | |
} |
This file contains hidden or 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
/** | |
* Plugin Name: ACircle Plugins | |
* Plugin URI: | |
* Description: The <code><strong>ACircle</strong></code> plugin allows ..... | |
* Author: AutoCircle | |
* Author URI: https://devhelp.us/ | |
* Text Domain: acircle-plugins | |
* Domain Path: /languages/ | |
* | |
* Version: 1.0.0 |
NewerOlder