atharalikhichi
Forum Replies Created
-
Forum: Plugins
In reply to: [Checkout Address AutoFill For WooCommerce] Address with Unit NumbersIf I could do it then I shouldn’t have asked you bro ??
Anyways, thanks.
Hi Hitesh,
Its not that the plugin folder is being deleted. No other plugin is deleting the attachments. Please understand whats happening here in my case.
When any event is expired and it has been around 30 days since it has expired, now for THAT event, the attached banner images and logo of organizer is automatically deleted. But the event data is not deleted. This is the bug.
You also know that your plugin has an option to delete expired events after 30 days. I have NOT CHECKED that option so it is not deleting the data of the event BUT the IMAGES are still being deleted.
This is a bug. Please comment on this issue.
If any other plugin was deleting my files then why only it is deleting EVENT IMAGES of that EVENT which is 30 days older when expired?
Hope you get my point.
Thanks.
I have defined / added my own field type that is
url
. It works absolutely fine if I directly change it in your plugin code by replacingtext
withurl
but not working by applying filters.- This reply was modified 7 years, 5 months ago by atharalikhichi.
Hi Ashok,
Only following area needs to be changed within your function
event_manager_duplicate_listing
. This will do the work:if (is_serialized($meta_value)) { update_post_meta( $new_post_id, $meta_key, unserialize($meta_value) ); } else { update_post_meta( $new_post_id, $meta_key, $meta_value); }
I have applied condition within your function where the post meta is being updated. Just need to replace
update_post_meta( $new_post_id, $meta_key, $meta_value);
with above conditions.Thanks.
Hi Ashok,
Actually I want to perform my own check if the
$action
is sayduplicate
. Like wise you can see in my functionauto_update_duplicate_event_fields
, I am gettingevent_id
but I am unable to get the$action
value from$_REQUEST['action']
.If you can help me with it, will be much appreciated.
Thanks.
- This reply was modified 7 years, 5 months ago by atharalikhichi.
Hi Ashok,
For some reason I am not getting the value from
$_REQUEST['action']
. Can you help me on how can I get this as I want to apply some checks on$action
.Thanks
- This reply was modified 7 years, 5 months ago by atharalikhichi.
No, it is for multiple banner. The thing is, values are already saved in array so thats why getting
get_post_meta
astrue
returns the array as it is and then by unserializing it, it resolves the issue. This is because my function is executed after your plugin function so you need to modify your function to check if themeta_value
is in array before updating thepostmeta
.I am able to temporary resolve the issue by applying following code in my theme’s
functions.php
file://Auto updates the meta data of array field when duplicating events from dashboard function auto_update_duplicate_event_fields() { $event_id = absint( $_GET['event_id'] ); $post = get_post($event_id); $status = $post->post_status; if ($status == 'preview') { //Get and update event images $event_banner = get_post_meta( $event_id, '_event_banner', true ); if (is_serialized($event_banner)) { $event_banner = unserialize($event_banner); update_post_meta( $event_id, '_event_banner', $event_banner ); } } } add_action('the_post', 'auto_update_duplicate_event_fields');
Thanks. Hope to have your latest version soon.
Hi Ashok,
Can you elaborate as how can I create this?
Thanks
Hi Ashok,
Any update on this issue? This is a priority error. If you can provide me an update sooner on this, will be much appreciated.
Many thanks.
Hi Ashok,
Many thanks for your reply. Can you please tell me will this make a short code of
pastEvent
that should I save in a page?Hi,
How can I apply this meta query within page? Can you please give me an example?
Many thanks.
Thanks
Hi Ashok,
Awaiting your reply on this.
Many thanks.