How does one apply an action to one particular page within admin?
I’ve added a bunch of wysiwyg editors to one page (“Home”) and now I don’t need the main editor. But the function below – of course – removes the editor from all pages:
function remove_editor_from_home_page() {
remove_post_type_support( 'page', 'editor' );
}
add_action( 'init', 'remove_editor_from_home_page' );
How can I target the Home page within admin by name – “Home” – or by page_id?
This other WPSE answer doesn’t want to work for me:
Target a certain page within wordpress backend
1 comment