- Plugin được phát hành dành cho thành viên của nhóm Tối ưu web ✪.
- Đây là plugin thử nghiệm nên nếu có lỗi phát sinh, bạn hãy comment trong group nhé.
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 | |
/** | |
* Override WooCommerce Hooks | |
* | |
* @package woocommerce-extends | |
* @author Khoi Pro <khoi@chuyendev.com> | |
* @since 0.0.1 | |
**/ | |
add_filter('woocommerce_product_tabs', 'chuyendev_woocommerce_product_tabs'); |
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 | |
$first_id = 110; | |
$items = [ | |
[ | |
'id' => 101, | |
'content' => 'Test 1' | |
], | |
[ |
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 | |
/** | |
* Redirect product 404 page to /best-selling/ page | |
* | |
* @package chuyendev | |
* @author codetot | |
* @since 0.0.1 | |
**/ | |
add_action('template_redirect', function() { | |
if ( is_404() ) { |
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 | |
// For example, logged in to your WordPress and hit http://sample.com/?action=update_videos once | |
add_action('wp', function() { | |
if ( !is_user_logged_in() ) return; | |
if ( empty( $_GET['action'] ) ) return; | |
if ($_GET['action'] !== 'update_videos') return; |
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
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{REQUEST_URI} !=/index.html | |
RewriteRule ^ /index.html [R=302] | |
</IfModule> |
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
@define-mixin bottom-line-left $color, $height: 4px, $width: 60px, $padding: 0.25em, $margin: 1em { | |
position: relative; | |
margin-bottom: $margin; | |
padding-bottom: $padding; | |
&::after { | |
content: ''; | |
position: absolute; | |
left: 0; | |
bottom: 0; |
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
# 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 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 | |
/** | |
* Rewrites Class | |
* | |
* @package CodetotTheme | |
* @author codetot | |
* @since 0.0.1 | |
*/ | |
namespace CODETOT\Theme; |
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
[06-Jan-2024 16:29:06 UTC] INFO: Delete product 188: delete gallery attachment id 189 | |
[06-Jan-2024 16:29:06 UTC] INFO: Delete product 188: delete gallery attachment id 190 | |
[06-Jan-2024 16:29:06 UTC] INFO: Delete product 188: delete gallery attachment id 191 | |
[06-Jan-2024 16:29:06 UTC] INFO: Delete product 188: delete gallery attachment id 192 | |
[06-Jan-2024 16:29:06 UTC] INFO: Delete product 188: delete gallery attachment id 193 | |
[06-Jan-2024 16:29:06 UTC] INFO: Delete product 188: delete gallery attachment id 194 | |
[06-Jan-2024 16:29:06 UTC] INFO: Delete product 188: delete gallery attachment id 195 | |
[06-Jan-2024 16:29:06 UTC] INFO: Delete product 188: delete gallery attachment id 196 | |
[06-Jan-2024 16:29:06 UTC] INFO: Delete product 188: delete gallery attachment id 197 | |
[06-Jan-2024 16:29:06 UTC] INFO: Delete product 188: delete video attachment id 235 |
NewerOlder