Remove links from wordpress admin bar: Given below code remove the wordpress logo and other links from the admin bar. function annointed_admin_bar_remove() { global $wp_admin_bar; /* Remove their stuff */ $wp_admin_bar->remove_menu(‘wp-logo’); $wp_admin_bar->remove_menu(‘updates’); $wp_admin_bar->remove_menu(‘view-site’); $wp_admin_bar->remove_menu(‘new-link’); $wp_admin_bar->remove_menu(‘new-user’); $wp_admin_bar->remove_menu(‘new-post’); $wp_admin_bar->remove_menu(‘comments’); }   Add…

Remove menu page links: function remove_menus() { global $submenu; remove_menu_page( ‘link-manager.php’ ); // Links remove_menu_page( ‘edit-comments.php’ ); // Comments remove_menu_page( ‘themes.php’ ); // Appearance remove_menu_page( ‘plugins.php’ ); // Plugins remove_menu_page( ‘users.php’ ); // Users remove_menu_page( ‘tools.php’ ); // Tools remove_menu_page(‘options-general.php’);…

The following example will show the categories with checkbox <?php $args=array( ‘child_of’ => ‘1’, ‘hide_empty’ => ‘0’ ); $categories = get_categories($args); foreach($categories as $key => $value){ ?> <label><input name=”escorts_category[]” value=”<?php echo $categories[$key]->cat_ID; ?>” type=”checkbox”> <?php echo $categories[$key]->name; ?></label><br /> <?php…

Copy and paste the given blow code in your theme functions.php file which will change the length of the wordpress excerpt function. function ratanjyot_solutions_excerpt_length($length) { return 50; } add_filter(‘excerpt_length’, ‘ratanjyot_solutions_excerpt_length’); The above code set the excerpt length to 50 words.