Technologies How to hide edotor in WorPress admin page January 27, 2023 1 min read // Remove WordPress editor admin page for template page function remove_wp_editor() { if ( isset( $_GET['post'] ) ) { $id = $_GET['post']; $my_template = get_post_meta($id, '_wp_page_template', true ); if( $my_template == 'template-page.php') { remove_post_type_support( 'page', 'editor' ); } } } add_action('admin_init', 'remove_wp_editor'); // Remove WordPress editor admin page for all pages function remove_wp_editor() { if ( isset( $_GET['post'] ) ) { $id = $_GET['post']; remove_post_type_support( 'page', 'editor' ); } add_action('admin_init', 'remove_wp_editor');
WordPress can’t crop image How to fix – The image cannot be processed by the web server. Convert it to JPEG or PNG before uploading. 1) open XAMPP control panel… Technologies August 7, 2022 1 min read
WordPress get posts by category How to create a shortcode to display all posts in a category WP. How to put a shortcode. Technologies July 17, 2022 1 min read
JavaScript Events Onabort – Triggers on an abort eventonafterprint – Triggers after the document is printedonbeforeonload – Triggers before the document loadsonbeforeprint – Triggers before the document is… JavaScript October 3, 2022 3 min read
Get Elements By Tag Name Examples The method returns a collection of all elements with a specified tag name. JavaScript July 17, 2022 1 min read