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 | |
// create custom plugin settings menu | |
add_action('admin_menu', 'plugin_create_menu'); | |
function plugin_create_menu() | |
{ | |
//create new top-level menu | |
add_menu_page('Theme Setting', 'Theme Setting', 'administrator', __FILE__, 'theme_setting', 'dashicons-admin-settings'); |
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
jQuery(document).ready(function (a) { | |
a("form#login1").on("submit", function (b) { | |
a("form#login1 p.status").show().text(ajax_login_object.loadingmessage), a.ajax({ | |
type: "POST", | |
dataType: "json", | |
url: ajax_login_object.ajaxurl, | |
data: { | |
action: "ajaxlogin", | |
username: a("form#login1 #username").val(), | |
password: a("form#login1 #password").val(), |
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 | |
/** | |
* Created by PhpStorm. | |
* User: SOMNATH | |
* Date: 24-03-2017 | |
* Time: PM 12:32 | |
* Template Name: Login | |
*/ | |
if($_POST) { |
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 | |
/** | |
* Created by PhpStorm. | |
* User: SOMNATH | |
* Date: 30-03-2017 | |
* Time: PM 12:56 | |
* Template Name: Process | |
*/ | |
global $post; | |
global $wpdb; |
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 | |
//init the meta box | |
add_action('after_setup_theme', 'custom_postimage_setup'); | |
function custom_postimage_setup() | |
{ | |
add_action('add_meta_boxes', 'custom_postimage_meta_box'); | |
add_action('save_post', 'custom_postimage_meta_box_save'); | |
} |
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 | |
$meta_query = WC()->query->get_meta_query(); | |
$tax_query = WC()->query->get_tax_query(); | |
$tax_query[] = array( | |
'taxonomy' => 'product_visibility', | |
'field' => 'name', | |
'terms' => 'featured', | |
'operator' => 'IN', | |
); | |
$args = array( |
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
<script type="text/javascript" | |
src="https://maps.googleapis.com/maps/api/js?key=AIzaSyAdVNlPdWIf1qPRQfkxgDsxwvcs0EO2I5c&libraries=places"></script> | |
<script type="text/javascript"> | |
var autocomplete = new google.maps.places.Autocomplete($("#map")[0], {}); | |
var autocompleteSecond = new google.maps.places.Autocomplete($("#map2")[0], {}); | |
var autocompletethird = new google.maps.places.Autocomplete($("#map3")[0], {}); | |
function initialize() { | |
google.maps.event.addListener(autocomplete, 'place_changed', function () { | |
fillInAddress(); |
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
sudo fuser -vki /var/lib/dpkg/lock | |
sudo fuser -vki /var/cache/apt/archives/lock | |
sudo fuser -vki /var/cache/debconf/config.dat | |
sudo dpkg --configure -a |
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
sudo npm install npm@latest -g |
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
dd@32@ata |