admin panel – How to remove “delete” button from category editing page

There is some modification in your code, insted of this class .taxonomy-category tr:hover .row-actions apply css on this class .taxonomy-category .row-actions span.delete, it willl work. Here is whole code. add_action(‘admin_head’, ‘hide_category_buttons’); function hide_category_buttons() { echo ‘<style> .taxonomy-category .row-actions span.delete { visibility: hidden; } </style>’; }

php code for outputting a custom page in my account

Check this one: How to add a new endpoint in woocommerce Update In your callback function include your extended template page because output is expected. ex: function foren_content() { include(‘woocommerce/myaccount/custom-page.php’); } Then inside custom-page.php call the desired content with get_post(ID) or if you have your endpoint registerd in woocommerce settings call it by slug. The … Read more

Form from within a page

I have managed to fix it by just changing my form data from <form method=”POST” action=”#”> to <form method=”POST” action=”<?php the_permalink(); echo $match_id; ?>?success=yes”> i am using the ?success=yes tag so that the form is no longer shown but just shows a moderation message instead.