Type: php
Image cover
.cover img{object-fit: cover;}Continue reading
Enable menu_order for product tags
// Enable menu_order for product tags function enable_menu_order_for_product_tags() { register_taxonomy( ‘product_tag’, ‘product’, array( ‘hierarchical’ => false, ‘label’ => __( ‘Product tags’, ‘woocommerce’ ), ‘show_ui’ => true, ‘query_var’ => true, ‘rewrite’ => array( ‘slug’ => ‘product-tag’ ), ‘sort’ => true, ‘args’…Continue reading
Untitled Snippet
Untitled Snippet
Disable Password Change Notifications
add_filter( ‘woocommerce_disable_password_change_notification’, ‘__return_true’ );Continue reading
Hello
echo “hello World !”;Continue reading
Completely Disable Comments (copy) (copy)
add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading
Completely Disable Comments (copy) (copy)
add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading
Completely Disable Comments (copy) (copy)
add_action(‘admin_init’, function () { // Redirect any user trying to access comments page global $pagenow; if ($pagenow === ‘edit-comments.php’) { wp_safe_redirect(admin_url()); exit; } // Remove comments metabox from dashboard remove_meta_box(‘dashboard_recent_comments’, ‘dashboard’, ‘normal’); // Disable support for comments and trackbacks in…Continue reading