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
// Beschreibung: Erzeugt einen eigenen Action-Hook | |
// Speicherort: functions.php | |
// Quelle: http://relearningtheweb.blogspot.de/2012/12/wordpress-create-custom-action-hook-in.html | |
/* | |
* 1. Create your own custom action hook named 'the_action_hook' | |
* with just a line of code. Yes, it's that simple. | |
* | |
* The first argument to add_action() is your action hook name |
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
// Beschreibung: Ändert die Bezeichnung der WooCommerce-Produkt-Tabs | |
// Speicherort: functions.php | |
// Quelle: http://docs.woothemes.com/document/editing-product-data-tabs | |
add_filter( 'woocommerce_product_tabs', 'woo_rename_tabs', 98 ); | |
function woo_rename_tabs( $tabs ) { | |
$tabs['description']['title'] = __( 'Neuer Name 1' ); // Rename the description tab | |
$tabs['reviews']['title'] = __( 'Neuer Name 2' ); // Rename the reviews tab |
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
// Beschreibung: Entfernt die WooCommerce-Produkt-Tabs; nicht zu entfernende Tabs einfach auskommentieren; | |
// Speicherort: functions.php | |
// Quelle: http://docs.woothemes.com/document/editing-product-data-tabs | |
add_filter( 'woocommerce_product_tabs', 'woo_remove_reviews_tab', 98 ); | |
function woo_remove_reviews_tab( $tabs ) { | |
unset( $tabs['description'] ); // Remove the description tab | |
unset( $tabs['reviews'] ); // Remove the reviews tab |
NewerOlder