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 | |
/** | |
* Reorder WordPress administration menu. | |
* | |
* en_US pt_BR - Page Name | |
* | |
* Appearence (Aparência) = themes.php | |
* Settings (Configurações) = options-general.php | |
* Comments (Comentários) = edit-comments.php | |
* Tools (Ferramentas) = tools.php |
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
/** | |
* Define parameters to set 'where' and what 'element' will have same height. | |
* | |
* @author Filipe Seabra | |
* @param where element's father | |
* @param element selector of the elements that must have same height | |
*/ | |
jQuery(window).load(function(){ | |
function sameHeight(where, element){ | |
var height = []; |
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 | |
/** | |
* Display Simple Product SKU, in WooCommerce loop pages, before item name | |
* | |
* @return void | |
*/ | |
function simple_product_sku_before_loop_item_title(){ | |
global $product; | |
$type = $product->product_type; |
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 | |
/** | |
* Create the new WooCommerce shortcode [random_product_categories] to output product categories randomly. | |
* Based on [product_categories] (/plugins/woocommerce/includes/class-wc-shortcodes.php). | |
* | |
* This new shortcode accepts all attributes used by [product_categories], except 'orderby' and 'order', of course. | |
* See more at @link https://woocommerce.com/document/woocommerce-shortcodes/. | |
* | |
* @param array $atts User defined attributes in shortcode tag. | |
*/ |
NewerOlder