This tutorial provides a simple solution which enables you to use CSS to remove the Send To Text Editor buttons located on the single listings admin screen.
This solution removes the 3 buttons as seen in the above image.
There’s 2 steps :
Step 1 : Add the following PHP code to the end of your child themes functions file :
add_action( 'admin_enqueue_scripts', 'enqueue_admin_style_sheet' );
function enqueue_admin_style_sheet() {
wp_enqueue_style( 'custom-admin-css', get_stylesheet_directory_uri() . '/admin.css', false, '1.0.0' );
}
Step 2 : Create a new file named admin.css in your child themes root directory and add the following CSS rule to the file :
#listing_details_metabox .button {
display: none;
}
You could also use PHP code to achieve the same result.
Leave a Reply