Send mail from page using wp_mail

This can (and should) be achieved using the admin_post action. Take a look at the docs for an example: https://codex.wordpress.org/Plugin_API/Action_Reference/admin_post_(action) SitePoint also have a more comprehensive tutorial here: https://www.sitepoint.com/handling-post-requests-the-wordpress-way/ Hope that helps.

remove/hide pages from users backend

One way to achieve this is by looping through the parent pages and fetching their respective children pages ids. The resulting arrays can then be merged and used in the ‘post__not_in’ variable. add_filter( ‘parse_query’ , ‘exclude_pages_from_admin’ ); function exclude_pages_from_admin( $query ) { global $pagenow,$post_type; $pages = array(‘1′,’2′,’3’); foreach ( $pages as $parent_page ) { $args … Read more

editing fonts of category links from the_category() funtion

If you are using the_category() (so without passing parameters), the result will be something like: <ul class=”post-categories”> <li><a href=”https://wordpress.stackexchange.com/questions/262546/cat1″>Category 1</a><li> <li><a href=”http://wordpress.stackexchange.com/cat2″>Category 2</a><li> </ul> So a css line like .post-categories li a {font-family:Myfont;} should do it. Reference: the_category() calls get_the_category_list, which does the actual output. This function ends with a filter, which you could use … Read more