V1 Before listing is saved action

This topic contains 4 replies, has 3 voices, and was last updated by  Kiran 5 years, 1 month ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #475559

    James Gehring
    Expired Member
    Post count: 34

    Is there an action to modify the listing before its saved? I am still using V1. Thanks

    #475566

    Kor
    Moderator
    Post count: 16516

    Hi James Gehring,

    Thanks for your post. Sorry, I’m not really sure if I’m getting this. You should be able to edit the listing before posting it. Could you show us some screenshots that explain more about this?

    Thanks!

    #475576

    James Gehring
    Expired Member
    Post count: 34

    My client wants people to be able to put a comma in a number field. so I need to make it a text field and then before it saves to database covert it to just a number number with no commas so it doesn’t mess up the search part.

    #475676

    Kor
    Moderator
    Post count: 16516

    Hi James,

    Thanks for your reply. I’ve just transferred this to a developer and he will look into your request and see if what you needed there is possible.

    #475845

    Kiran
    Moderator
    Post count: 7069

    Hello James,

    Use following snippet to filter listing data before saving.

    
    
    function gd_snippet_filter_post_request_info( $request_info ) {
    	//$request_info['FIELD_NAME'] = "FIELD_VALUE";
    
    	return $request_info;
    }
    add_filter( 'geodir_action_get_request_info', 'gd_snippet_filter_post_request_info', 10, 1 );

    Kiran

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

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket