where you want to remove data stored in session after some specific time-period, this can be done using tempdata functionality in CodeIgniter. Add Tempdata To add data as tempdata, we have to use mark_as_tempdata() function. This function takes two argument items or items to be stored as tempdata and the expiration time for those items are as shown below. Retrieve Tempdata We can retrieve the tempdata using tempdata() function. This
If you need to create custom tags for custom post types, here's what you need to do to add/allow "custom tags" to your custom post types in WordPress.
Open quick view pop-up outside the woocommerce template file by using custom code and simple ajax request.
we need to store some data for one time and after that we want to remove that. we can achieve this type of functionality using Flashdata in CodeIgniter. Flashdata will only be available until the next request, and it will get deleted automatically. Add Flashdata We can simply store flashdata as shown below. mark_as_flash() function takes only one argument of the value to be stored. We can also pass an
Here we are going to learn how to remove type attribute from script and style tag added by wordpress.