Launched my another new wordpress plugin : Protect WP-Admin

Hello Friends, Hope you all doing well :) I have launched my another new  “Protect WP-Admin” wordpress plugin. “Protect WP-Admin”  is a very help full plugin to make wordpress admin more secure. Protect WP-Admin plugin is provide the options for change the wp-admin url and make the admin login page private(spam user can’t access the …

Using hooks how can add new columns on list page for custom post type in Admin

Hello Friends! If you want to add a new columns with custom meta fields on list page for any post type then you can do it using the wordpress hooks. Using hooks you have no need to edit in wordpress core file, you can do all by edit in theme function.php file. add_filter( ‘manage_edit-news_columns’, ‘news_edit_columns_title’ …

Detect mobile browser using PHP

Hello Friends! Hope you all are doing well! :) If you want to check that your website is browsing in mobile phone and desktop OR want to add the any condition for mobile/desktop then use code given below : <?php function is_mobile_browser() { $is_mobile = (bool) preg_match( ‘#\b(ip(hone|od)|android\b.+\bmobile|opera m(ob|in)i|windows (phone|ce)|blackberry’ . ‘|s(ymbian|eries60|amsung)|p(alm|rofile/midp|laystation portable)|nokia|fennec|htc[\-_]’ . ‘|up\.browser|[1-4][0-9]{2}x[1-4][0-9]{2})\b#i’, …