Profile cover photo
Profile photo
Ashok Kumar
Ashok's posts

Post has attachment
Prevent Form Submission When User Presses the Enter key / Move to next textbox when user presses enter key
 When we filling out the web forms, if we hit the Enter key accidentally, then the form will submit, it makes us frustrating every time. To prevent this you can use the code below. Instead of submitting, it actually focus / moves to next input boxes when we...

Post has attachment
Wordpress admin panel custom landing page after login
Redirect to different landing page after successful login on wordpress admin panel, /To make non-admin users redirect to specified landing page/ function your_login_redirect() { if(!is_super_admin()){             // pick where to redirect to, in the examp...

Post has attachment
Wordpress Disable Admin Panel Menus Based on Role
In wordpress admin panel, if you want to hide certain menu's for non-admins , then add the below code in your current theme's functions.php file. function remove_menus () { global $menu;         $restricted = array(__('Dashboard'), __('Pages'), __('Appearan...

Post has attachment
Yii2 gridview row options
In Yii2 GridView, if you want to highlight or focus on certain row,
you can use rowOptions attribute in your gridview. Below are the example code. <?= GridView::widget([     'dataProvider' => $dataProvider,     'filterModel' => $searchModel,       'rowOpti...
Wait while more posts are being loaded