Category

Hook

5 articles in this category

Tùy biến hiển thị mã nhúng

24 Tháng 9, 2020 1 min read

Xem thêm tại: https://www.sitepoint.com/customizing-wordpress-oembed-content/   Hoặc bài khác: https://www.smashingmagazine.com/2012/11/embeddable-content-wordpress/

Đổi thẻ heading sản phẩm trong danh mục sản phẩm

10 Tháng 8, 2020 1 min read

Cụ thể đổi thẻ h2 xang h3 remove_action( ‘woocommerce_shop_loop_item_title’,’woocommerce_template_loop_product_title’, 10 ); add_action(‘woocommerce_shop_loop_item_title’, ‘abChangeProductsTitle’, 10 ); function abChangeProductsTitle() { echo ‘<h3 class=”woocommerce-loop-product_title”>’ . get_the_title() . ‘</h3>’; } tham khảo:…

Ẩn admin bar wordpress

10 Tháng 9, 2019 1 min read

Thêm hàm sau vào function add_filter( ‘show_admin_bar’, ‘__return_false’ );