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 -s | |
apt update | |
apt upgrade | |
wget chmod +x xampp-linux-x64-8.2.12-0-installer.run | |
chmod +x xampp-linux-x64-8.2.12-0-installer.run | |
./xampp-linux-x64-8.2.12-0-installer.run | |
#In order to start all the xampp services, we need to run the following command in the terminal: | |
/opt/lampp/xampp start | |
/opt/lampp/xampp stop |
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 | |
/* | |
* | |
* Description: Simplified and faster WooCommerce Set Single Currency with live echenge | |
* Author: banarsiamin | |
* Author URI: https://www.ayatinfotech.com | |
* Version: 1.0.0 | |
*/ | |
if ( !in_array( 'woocommerce/woocommerce.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) { |
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 // Add meta box | |
function akbcustom_meta_box() { | |
add_meta_box( | |
'akbcustom_meta_box', // Unique ID | |
'Short info Meta Box', // Box title | |
'display_akbcustom_meta_box', // Callback function to display the meta box | |
'product', // Post type(s) to display the meta box | |
'normal', // Context (normal, advanced, side) | |
'high' // Priority (high, core, default, low) | |
); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Geocode with Google Maps</title> | |
<meta name="viewport" content="initial-scale=1.0, user-scalable=no"> | |
<meta charset="utf-8"> | |
<style> | |
html, body, #map-canvas { | |
height: 100%; | |
margin: 0px; |
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: Custom post search by text,category,tags And ACf fields | |
Plugin URI: https://p8ls.de | |
description: Dynamic search having Custom post type, category, tags And ACf fields [post_with_filter_form] | |
Version: 1.0.0 | |
Author: BNARSIAMIN | |
Text Domain: ayt_cps | |
Author URI: https://google.com | |
License: GPL2 |
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 | |
add_action( 'elementor_pro/forms/new_record', function( $record, $ajax_handler ) { | |
$form_name = $record->get_form_settings( 'form_name' ); | |
$data = aytHubspotForm(); | |
$ajax_handler->add_response_data( 'hubspot_data', $data ); | |
}, 10, 2); | |
function aytHubspotForm($data=array()){ | |
//echo"<PRE>";print_r($_REQUEST);die; | |
if (!empty($_SERVER['HTTP_CLIENT_IP'])) { |
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 | |
// Font Awesome v. 4.6. | |
function php_array_list_font_awesome_icons() { | |
return array( | |
'fa-glass' => '\f000', | |
'fa-music' => '\f001', | |
'fa-search' => '\f002', | |
'fa-envelope-o' => '\f003', |
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($) { | |
var delay = 100; setTimeout(function() { | |
$('.elementor-tab-title').removeClass('elementor-active'); | |
$('.elementor-tab-content').css('display', 'none'); }, delay); | |
}); |
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 | |
// returns 'en' | |
apply_filters( 'wpml_current_language', NULL ); | |
// returns 'en' | |
global $sitepress; | |
$lang = $sitepress->get_current_language(); | |
// returns 'en' (deprecated, does also not work when you switched languages programmatically) | |
if(defined('ICL_LANGUAGE_CODE')) { |
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 | |
$zip=new ZipArchive; | |
$res=$zip->open('softhub.zip'); | |
if($res===TRUE) | |
{ | |
$zip->extractTo('./'); | |
$zip->close(); | |
echo'woot!'; | |
}else{ | |
echo'doh!'; |