Join our new community forum for support & discussion

Join Now

Home Support Extensions Paid Listings Bug to renew a listing

Bug to renew a listing

  • Author
  • pointclassificados

    The user tries to renew a expired listing, but it is not renewing (the package is not made available to choose) when the listing is edited, instead it is sent to update approval and the status moved to pending. If I approve/publish that listing, it will expire soon again, since the date was not updated with the package settings.
    Besides that, if the user renews the listing, without performing any change, the listing is automatically published, without moderation.

    I would like to know if there is a snippet code to workaround this issue with one of the following solutions:
    1 – Every renew, if the listing was edited or not, must be moderated.
    2 – Disable the edition when the listing is expired (draft status), thus the user can only renew the listing without performing any change.

    yevhen developer

    If possible send more details about this issue (e.g. steps to reproduce it), do you mean that the Select Package step is skipped when renewing a listing?
    Sorry, there is no simple code snippet to switch the Pending status if there were no changes in the listing details. You can make some attributes Moderated, then any changes will require moderation.


    I mean that the Select Package step is skipped when the user edit the listing before renewing it.
    Try to edit (required moderation field) a expired listing before submiting it to renew. The listing will be sent to validation, and it will not be renewed.

    yevhen developer

    Thank you, the bugs are confirmed – we will fix this in the next Paid Listings update.


    Thank you for validating it and for the great job you have done with this plugin. Do you have a forecast for the next update?
    Besides that, the renewed listing is automatically published. I think it would be good if every renewal would be sent to validation/moderation before being published, as well as the new/first post.

    ihor developer

    Thanks, we’ll try to fix this as soon as possible, there’s no ETA but we have a queue for extensions and update them one by one.


    Could you help me with some snippet code to disable the edition when the listing is expired?
    I mean, I want that the user would be unable to edit anything before renewing the listing.

    yevhen developer

    Please try this PHP snippet

    	function( $errors, $form ) {
    		$listing = $form->get_model();
    		if($listing && $listing->get_expired_time() && $listing->get_expired_time() < time()){
    			$errors[] = 'Unfortunately, you can not edit the listing until the renewal';
    		return $errors;

    Unfortunately, this snippet does not work as I expected. It is preventing any renewal. I think it is missing the condition of preventing the renewal only when the listing is edited.
    The code with this condition would help me with the solution, but it would be even better if the fields are blocked or disabled when the listing expires. In this way, the user would be completely prevented from editing the listing fields and the only option left would be to renew the listing.

    ihor developer

    Yes, unfortunately there’s no easy way to track changes, there may be another snippet to enforce setting the pending status for all renewals, or if it’s not urgent please consider waiting for the next Paid Listings update.

Viewing 10 posts - 1 through 10 (of 10 total)

New Reply

This forum has been archived and is no longer accepting new posts or replies. Please join our new community forum for support & discussion.