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 wpt_custom_remove_default_sort( $classes ){ | |
$key = array_search('wpt_column_sort',$classes); | |
unset($classes[$key]); | |
$key2 = array_search(' wpt_column_sort',$classes); | |
unset($classes[$key2]); | |
return $classes; | |
} | |
add_filter('wpt_wrapper_class','wpt_custom_remove_default_sort'); |
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 wpt_view_cart_text_changer_callback($view_cart_text, $table_id){ | |
$view_cart_text = 'Show'; | |
return $view_cart_text; | |
} | |
add_filter('wpt_view_cart_text', 'wpt_view_cart_text_changer_callback',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
<?php | |
if( !function_exists( 'codeastrology_wpt_minifilter_taxonomy_name' ) ){ | |
function codeastrology_wpt_minifilter_taxonomy_name($label, $texonomy_name){ | |
if($texonomy_name == 'product_cat'){ | |
return "Filter By Categoty"; | |
} | |
if($texonomy_name == 'product_tag'){ | |
return "Filter By Tag"; | |
} | |
return $label; |
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
woocommerce_add_cart_item_data | |
woocommerce_checkout_create_order_line_item | |
woocommerce_get_item_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
// Activate WordPress Maintenance Mode | |
function wp_maintenance_mode() { | |
if (!current_user_can(‘edit_themes’) || !is_user_logged_in()) { | |
wp_die(‘<h1>Under Maintenance</h1><br />Website under planned maintenance. Please check back later.’); | |
} | |
} | |
add_action(‘get_header’, ‘wp_maintenance_mode’); |
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
RewriteEngine On | |
RewriteBase / | |
RewriteCond %{REQUEST_URI} !^/maintenance\.html$ | |
RewriteRule ^(.*)$ https://example.com/maintenance.html [R=307,L] |
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
# BEGIN WordPress | |
RewriteEngine On | |
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] | |
RewriteBase / | |
RewriteRule ^index\.php$ - [L] | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteRule . /index.php [L] |
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
<item> | |
<title>image-835634856_324234</title> | |
<link>https://codeastrology.com/wp-content/uploads/image-835634856_324234-5/</link> | |
<pubDate>Sun, 13 AUG 2022 21:17:52 +0000</pubDate> | |
<dc:creator><![CDATA[devowl]]></dc:creator> | |
<guid isPermaLink="false">https://codeastrology.com/wp-content/uploads/image-835634856_324234.jpg?sc=56</guid> | |
<description></description> | |
<content:encoded><![CDATA[]]></content:encoded> | |
<excerpt:encoded><![CDATA[]]></excerpt:encoded> |
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
add_action( 'wp_footer','codeAstroly_change_add_cart_selected_text',100); | |
function codeAstroly_change_add_cart_selected_text(){ | |
?> | |
<script> | |
jQuery(document).ready(function($){ | |
$(document).on('wpt_count_updated',function(aaa,args){ | |
var btn = args['button_object']; | |
var itemAmount = args['itemAmount']; | |
var button_text = args['button_text']; | |
var custom_text = 'Added'; |