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
<?php | |
/* | |
The MIT License (MIT) | |
Copyright © 2014 Ian Lai | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the “Software”), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is |
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 WordPress code snippet set the number of posts per pages depending the page | |
* | |
* Author: Oscar Abad Folgueira | |
* Author URI: http://www.oscarabadfolgueira.com | |
* | |
* You can copy this snippet and paste in your functions.php or you can build your own plugin | |
* | |
* Change the number of posts per page on each case. | |
*/ |
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 WordPress code snippet adds some text or html at the top of the checkout page of your WooCommerce | |
* | |
* Author: Oscar Abad Folgueira | |
* Author URI: http://www.oscarabadfolgueira.com | |
* | |
* You can copy this snippet and paste in your functions.php or you can build your own plugin | |
*/ | |
add_action( 'woocommerce_before_checkout_form', 'add_checkout_top_text', 11 ); |
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 WordPress code snippet change de order of the woocommerce product tabs in products pages. | |
* | |
* Author: Oscar Abad Folgueira | |
* Author URI: http://www.oscarabadfolgueira.com | |
* | |
* You can copy this snippet and paste in your functions.php or you can build your own plugin. | |
*/ | |
add_filter( 'woocommerce_product_tabs', 'oaf_wc_change_tabs_order', 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
<?php | |
/** | |
* This WordPress/Woocommerce code snippet change the product tabs titles | |
* | |
* Author: Oscar Abad Folgueira | |
* Author URI: http://www.oscarabadfolgueira.com | |
* | |
* You can copy this snippet and paste in your functions.php or you can build your own plugin | |
* | |
* Change the tabs titles your needs. |
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
<?php | |
/** | |
* This WordPress / Woocommerce code snippet change the "Add to cart" text. | |
* | |
* Author: Oscar Abad Folgueira | |
* Author URI: http://www.oscarabadfolgueira.com | |
* | |
* You can copy this snippet and paste in your functions.php or you can build your own plugin | |
* | |
* Change the text for your needs. |
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
<?php | |
/** | |
* This WordPress / Woocommerce code snippet set the minimum length for comments. | |
* | |
* Author: Oscar Abad Folgueira | |
* Author URI: http://www.oscarabadfolgueira.com | |
* | |
* You can copy this snippet and paste in your functions.php or you can build your own plugin | |
* | |
* Change the number of characters to your needs. |
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
<?php | |
/** | |
* This WordPress code snippet redirect new registered users to specific page. | |
* | |
* Author: Oscar Abad Folgueira | |
* Author URI: http://www.oscarabadfolgueira.com | |
* | |
* You can copy this snippet and paste in your functions.php or you can build your own plugin | |
* | |
* Change the url of the page to your needs. |
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
<?php | |
/** | |
* This WordPress code snippet change the login logo of your WordPress site. | |
* | |
* Author: Oscar Abad Folgueira | |
* Author URI: http://www.oscarabadfolgueira.com | |
* | |
* You can copy this snippet and paste in your functions.php or you can build your own plugin | |
* | |
* Change the url of the logo image to your needs. |
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
<?php | |
/** | |
* This WordPress code snippet change the url of the login logo of your WordPress site. | |
* | |
* Author: Oscar Abad Folgueira | |
* Author URI: http://www.oscarabadfolgueira.com | |
* | |
* You can copy this snippet and paste in your functions.php or you can build your own plugin | |
* | |
* Change the url to your needs. |
OlderNewer