Author: therichpost
-
Add dynamic id to dynamic jQuery generated content – jQuery trick 4
Hello to all, welcome to therichpost.com. In this post, I will tell you, Add dynamic id to dynamic jQuery generated content. jQuery seems the best in some cases and I have millions of examples for this. I am generating dynamic content with the help of jquery and add dynamic id to that content. Here is working…
Written by
-
Get days difference in two dates – jQuery trick 3
Hello to all, welcome to therichpost.com. In this post, I will tell you, Get days difference in two dates. jQuery is easy but sometimes it is difficult in simple tasks like this. Here is the working code for Get days difference in two dates: If you have query related to jquery or this post, then please…
Written by
-
Jquery click on dynamically created element – jQuery trick 2
Hello to all, welcome to therichpost.com. In this post, I will tell you, Jquery click event on dynamically created element. In this post, I will fire the click event on jquery created button. Here is the working example code: If you have any query related to this post or any thing related to jquery then…
Written by
-
Get multi-child parent div id jquery – jQuery trick 1
Hello to all, welcome to therichpost.com. In this post, I will tell you, Get multi-child parent div id jquery. Now I came with my best my first love in coding jQuery. I like jQuery very much. Today I am giving working example of how to Get multi-child parent div id jquery: I will come with more jquery…
Written by
-
laravel scheduler with delete query
Hello to all, welcome to therichpost.com. In this post, I will tell you, laravel scheduler with delete query. Your task schedule is defined in the app/Console/Kernel.php file’s schedule method. Laravel scheduler is the very feature of laravel which makes cron jobs easy to handle and code. Here is example working query for laravel scheduler with delete query: $schedule->call(function ()…
Written by
-
Laravel Create a custom middleware class that checks the user’s role
Hell to all, welcome to therichpost.com. In this post, I will tell you, how to Create a Laravel custom middleware class that checks the user’s role? Laravel now a days top php mvc framework. I am also learning laravel. Here we start the code for Laravel custom middleware class that checks the user’s role: 1. First, we will…
Written by
-
Wp query display woocommerce product based on category name
Hello to all, welcome to therichpost.com. In this post, I will tell you, Wp_query display woocommerce product based on category name. Here is the code for Wp_query display woocommerce product based on category name and you can this code any of your wordpress theme’s template file: <?php $args = array( ‘post_type’ => ‘product’, ‘posts_per_page’ => 10, ‘product_cat’…
Written by
-
Woocommerce hook to redirect user after login based on users
Hello to all, welcome to therichpost.com. In this post, I will tell you, Woocommerce hook to redirect user after login based on users. I am redirecting different users to different pages after woocommerce login based on usernames. Here is the working code for Woocommerce hook to redirect user after login based on users and you need to…
Written by
-
How to add banner image woocommerce shop page with hook?
Hello to all, welcome to therichpost.com. In this post, I will tell you, How to add banner image woocommerce shop page with hook? I am sharing two hooks and both are working. Here is the working code for How to add banner image woocommerce shop page with hook? and you need to add this code into your…
Written by