- Active AndroidX if it isn’t already.
- Create and checkout to new branch (appcenter currently only listen trigger from commit code on branch)
- Setup android:
- Comment those lines in file android/.gitignore
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
<?php | |
// For changing Option Name of variable product on Front end, including price with attribute name | |
add_filter( 'woocommerce_variation_option_name', function($option, $null, $attribute, $product){ | |
if($product instanceof WC_Product_Variable){ | |
$variations = $product->get_available_variations(); | |
foreach ($variations as $key => $value) { | |
if(isset($value['attributes']['attribute_volume']) && isset($value['display_price']) && $value['attributes']['attribute_volume'] == $option){ | |
$option = $value['attributes']['attribute_volume'].' - Rs.'.$value['display_price'].'/-'; | |
} |
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
version: "3" | |
services: | |
mysql_db: | |
container_name: "wordpress_db" | |
environment: | |
MYSQL_DATABASE: wordpress_db | |
MYSQL_PASSWORD: wordpress_user_password | |
MYSQL_ROOT_PASSWORD: wordpress_password | |
MYSQL_USER: wordpress_user | |
image: "mariadb:10.6.4-focal" |
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
<?php | |
function get_youtube_channel_ID($url){ | |
$html = file_get_contents($url); | |
preg_match("'<meta itemprop=\"channelId\" content=\"(.*?)\"'si", $html, $match); | |
if($match && $match[1]); | |
return $match[1]; | |
} |
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
<?php | |
public function replace_shortcode( $args, $body ) { | |
$tags = array( | |
'email' => "", | |
'firstname' => "", | |
'lastname' => "", | |
); | |
$tags = array_merge( $tags, $args ); |
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($){ | |
function post(path, params, method) { | |
method = method || "post"; // Set method to post by default if not specified. | |
// The rest of this code assumes you are not using a library. | |
// It can be made less wordy if you use one. | |
var form = document.createElement("form"); | |
form.setAttribute("method", method); | |
form.setAttribute("action", path); |