Month: May 2018
-
How to Split Laravel Routes into Multiple Files?
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to Split Laravel Routes into Multiple Files? Laravel is one of the top php mvc framework and growing very faster. First, we need to check route files defined in app/Providers/RouteServiceProvider.php. In that file, there are two functions called mapWebRoutes() and mapApiRoutes(). Those…
Written by
-
Woocommerce hook to hide place order button for a specific shipping class
Hello, welcome to therichpost.com. In this post, I will tell you, Woocommerce hook to hide place order button for a specific shipping class. WordPress is the best cms and Woocommerce is the best Ecommerce plugin. WordPress hooks(add_action, add_filter) give us the power to edit or change the code without interruption into the files and this…
Written by
-
How to get WP_query posts according acf field values?
Welcome to therichpost.com. In this post, I will tell you, How to get WP_query posts according acf field values? Like I always say WordPress is the best cms. Here is working and tested wp_query posts according to acf fields value and you can add this code any your theme’s template file: <?php $args = array(…
Written by
-
Laravel Route with variable
Hello to all, welcome to therichpost.com. In this post, I will tell you, Laravel Route with variable. Like I always say that laravel is the best Mvc php framework. Here is the working route code and you can set variable in laravel routes and use it anywhere: //web.php code: Route::get(‘/test/{id?}’, function ($id = 1) {…
Written by
-
How to Show only featured products in Woocommerce shop page?
Hello, welcome to therichpost.com. In this post, I will tell you, How to Show only featured products in Woocommerce shop page? WordPress is the best cms and Woocommerce is the best Ecommerce plugin. WordPress hooks(add_action, add_filter) give us the power to edit or change the code without interruption into the files and this is the…
Written by
-
Laravel query with or condition between multiple dates check
Hello to all, welcome to therichpost.com. In this post, I will tell you, Laravel query with or condition between multiple dates check. Like I always say that laravel is the best Mvc php framework. Here is the working and tested query for laravel or conditions between multiple dates: $bookingChk = DB::table(‘users’) ->select(‘id’) ->where(‘staff_id’, “=”, $req->staffdetail)…
Written by
-
How to print query in laravel?
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to print query in laravel? Like I always say that laravel is the best Mvc php framework. Here is the working code to print query in laravel: DB::enableQueryLog(); $user = DB::table(‘user’)->where(’email’,’!=’,’test’)->get(); $query = DB::getQueryLog(); $query = end($query); print_r($query); die(); or, you…
Written by
-
Maximum checkbox checked by jquery
Hello, welcome to therichpost.com. In this post, I will tell you, how to check Maximum checkbox checked by jquery? I personally like jquery very much. Most of my code is full with jquery. When I stuck in php or other language then that stuckness I remove with jquery code Here is the working code to…
Written by
-
WordPress hook Remove admin Pages if user not Super Admin
Hello, welcome to therichpost.com. In this post, I will tell you, WordPress hook Remove admin Pages if user not Super Admin. WordPress is the best cms. WordPress hooks(add_action, add_filter) give us the power to edit or change the code without interruption into the files and this is the best thing about wordpress. Now I am…
Written by
-
Woocommerce hook to Redirect single product pages to home page
Hello, welcome to therichpost.com. In this post, I will tell you, Woocommerce hook to Redirect single product pages to home page. WordPress is the best cms and Woocommerce is the best Ecommerce plugin. WordPress hooks(add_action, add_filter) give us the power to edit or change the code without interruption into the files and this is the…
Written by