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
WP Araçları | |
https://generatewp.com/ | |
Requirements | |
WP.org https://make.wordpress.org/themes/handbook/review/required/ | |
Themeforest https://help.author.envato.com/hc/en-us/articles/360000472383-WordPress-Theme-Requirements | |
Test | |
https://tr.wordpress.org/plugins/theme-check/ | |
https://github.com/WPTRT/theme-sniffer |
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
apply_filters( 'woocommerce_available_payment_gateways', $_available_gateways ); | |
add_filter( 'woocommerce_available_payment_gateways', 'amc_remove_payment_method'); | |
function amc_remove_payment_method( $_available_gateways ){ | |
if( class_exists( 'WooCommerce' ) ) : | |
// Get All Payment Methods | |
$payments = $_available_gateways; | |
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
// Please paste this code to your theme function file | |
// Go to Admin Panel and refresh for once | |
// Then remove this code from functions file | |
add_action( 'init', 'amc_update_all_sku' ); | |
function amc_update_all_sku(){ | |
$products = wc_get_products( 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
add_filter( 'woocommerce_get_availability_text', 'amc_change_out_of_stock_text', 10, 2 ); | |
function amc_change_out_of_stock_text( $availability, $product ){ | |
if ( ! $product->is_in_stock() ) { | |
$availability = __( 'in de winkelmand', 'woocommerce' ); | |
} |
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
/* | |
* | |
* Change WooCommerce Text String | |
* @link http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext | |
* | |
*/ | |
function amc_change_woo_string( $translation, $text, $domain ){ | |
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
// This action will help you to add excerpt to the product archive page | |
add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_single_excerpt', 20 ); |
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
// This action will help you to add excerpt to the product archive page | |
add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_single_excerpt', 20 ); |
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
// This action will help you to add excerpt to the product archive page | |
add_action( 'woocommerce_after_shop_loop_item_title', 'woocommerce_template_single_excerpt', 20 ); |