Using {{ data.random }} as ID in wp_editor()

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #16490
    jakstcr
    Participant

    I have tried to leverage the hook wp_travel_itinerary_list_template_before_description and was trying to add a wp_editor. I tried to use data.random along with a prefixed field name in ID option of wp_editor() function. But this is giving me error Uncaught Error: Syntax error, unrecognized expression: #wp-highlights_editor_{{data.random}}-wrap

    Could you please help on how can I proceed here.

    #16495
    wensolutions
    Keymaster

    Hello @jakstcr

    First of all, thank you so much for using WP Travel plugin.

    Regarding your query, first of all, let us make you clear that any changes that you make in the core file of the plugin will revert back once you update the plugin. Therefore, we request you to make the changes in the child theme rather in the main file.

    Also, referring the changes to the codes via support forum is out of the scope of the support forum since, in worst case it can cause some fatal issues. We need to know the changes and requirements in detail for precise result. For any kind of assistance further, kindly refer to Hire our Customizer service.

    Hoping for your kind co-operation.

    Regards!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘WP Travel’ is closed to new topics and replies.