Title: meushar's Replies | WordPress.org

---

# meushar

  [  ](https://wordpress.org/support/users/meushar/)

 *   [Profile](https://wordpress.org/support/users/meushar/)
 *   [Topics Started](https://wordpress.org/support/users/meushar/topics/)
 *   [Replies Created](https://wordpress.org/support/users/meushar/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/meushar/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/meushar/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/meushar/engagements/)
 *   [Favorites](https://wordpress.org/support/users/meushar/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/users/meushar/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/meushar/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Forminator Forms – Contact Form, Payment Form & Custom Form Builder] forminator dynamic redirect url](https://wordpress.org/support/topic/forminator-dynamic-redirect-url/)
 *  Thread Starter [meushar](https://wordpress.org/support/users/meushar/)
 * (@meushar)
 * [8 months, 2 weeks ago](https://wordpress.org/support/topic/forminator-dynamic-redirect-url/#post-18585028)
 * Hi Amin
 * with a huge amount of effort I managed to come up with the names of appropriate
   hooks to use for pre and post submit processing. I am now at the last stage where
   I need to return the new data values for the fields to the front end.
 * My backend code writes the response, but I cannot retrieve it on the front end.
   I obviously have the incorrect parameters for the functions, and even the incorrect
   jquery parameters. Please can you assist?
 * My backend in functions.php is
 * add_filter(‘forminator_form_ajax_submit_response’, function($response_data, $
   form_id) {
 *     error_log(“✅ Hook forminator_form_ajax_submit_response FIRED for form ID:
   $form_id”);
 *     error_log(“Before modification: ” . print_r($response_data, true));
 *     if ($form_id == 79 && isset($GLOBALS[‘piapi_updated_values’])) {
 *         $response_data[‘data’][‘piapi_update’] = $GLOBALS[‘piapi_updated_values’];
 *         error_log(“Injected piapi_update: ” . print_r($GLOBALS[‘piapi_updated_values’],
   true));
 *     }
 *     error_log(“After modification: ” . print_r($response_data, true));
 *     return $response_data;
 * }, 10, 2);
 * My front end code is
 *     ```wp-block-code
       jQuery(document).on('forminator:form:submit:success', function(event) {    // Try to get data from originalEvent.detail or event.detail (native custom event)    var detail = event.originalEvent?.detail || event.detail;    console.log("🔥 Form submitted");    console.log("📥 event detail:", detail);    if (detail && detail.data && detail.data.piapi_update) {        console.log("✅ piapi_update found:", detail.data.piapi_update);        var form = event.target;        Object.entries(detail.data.piapi_update).forEach(function([name, value]) {            var input = form.querySelector([name="${name}"]);            if(input) {                input.value = value;                console.log(🧠 Updated field ${name} to ${value});            }        });    } else {        console.warn("⚠️ No piapi_update found in AJAX response");    }});
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Job Manager] Textarea fields do not maintain formatting](https://wordpress.org/support/topic/textarea-fields-do-not-maintain-formatting/)
 *  Thread Starter [meushar](https://wordpress.org/support/users/meushar/)
 * (@meushar)
 * [1 year, 5 months ago](https://wordpress.org/support/topic/textarea-fields-do-not-maintain-formatting/#post-18130923)
 * Hi Cara
 * Thanks for the reply.
 * With the error even if preformatted was selected prior to pasting, the formatting
   was lost.
 * I added the following to my functions.php file and it solved the issues. It also
   gives me more options on the editor controls.
 *     ```wp-block-code
       add_filter('tiny_mce_before_init', 'custom_tinymce_settings');function custom_tinymce_settings($initArray) {    $initArray['toolbar1'] = 'bold italic underline strikethrough superscript  subscript | bullist numlist | outdent indent  | link unlink | alignleft aligncenter alignright alignjustify | removeformat ';    $initArray['toolbar2'] = 'formatselect fontselect fontsizeselect';    $initArray['toolbar3'] = 'cut copy paste | undo redo | forecolor backcolor';    $initArray['content_css'] = get_template_directory_uri() . '/css/custom-editor-styles.css'; // Custom styles for the editor    // Preserve line breaks    $initArray['wpautop'] = false; // Prevents automatic paragraph tags around content    $initArray['forced_root_block'] = ''; // Prevents wrapping content in <p> tags by default    // Enable and configure paste plugin    $initArray['plugins'] = 'paste'; // Ensure paste plugin is enabled    $initArray['paste_as_text'] = false; // Allows rich text to be pasted with formatting   // $initArray['paste_enable_default_filters'] = false; // Disable TinyMCE's default paste filters    // Configure TinyMCE to allow preformatted text    $initArray['preformatted'] = true; // Allows preformatted text, keeping spaces and tabs intact    $initArray['force_p_newlines'] = true; // Forces new lines to be preserved as paragraphs    $initArray['remove_linebreaks'] = false; // Prevents TinyMCE from removing line breaks    // Clean up symbols and formatting from Word    $initArray['paste_word_valid_elements'] = "b,strong,i,em,ul,ol,li,p,br,h1,h2,h3,h4,h5,h6";    $initArray['paste_remove_styles'] = true; // Strip inline Word styles that may include special symbols    $initArray['paste_retain_style_properties'] = ''; // Remove any unwanted style properties on paste    // Allow all HTML tags (optional)    //$initArray['valid_elements'] = '*[*]'; // Allows all HTML tags and attributes    $initArray['extended_valid_elements'] = 'pre[class|style],p,br,b,strong,i,em'; // Extend to specific inline tags if needed    return $initArray;}
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Members - Membership & User Role Editor Plugin] Edit role page width extends out of page](https://wordpress.org/support/topic/edit-role-page-width-extends-out-of-page/)
 *  Thread Starter [meushar](https://wordpress.org/support/users/meushar/)
 * (@meushar)
 * [1 year, 8 months ago](https://wordpress.org/support/topic/edit-role-page-width-extends-out-of-page/#post-17920932)
 * Seems to be a problem when using Microsoft Edge browser. Works OK with Chrome.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP eCards – Branded Digital Greeting Cards] logo image size](https://wordpress.org/support/topic/logo-image-size-4/)
 *  Thread Starter [meushar](https://wordpress.org/support/users/meushar/)
 * (@meushar)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/logo-image-size-4/#post-16301030)
 * Hi Tim
 * your reply is very much appreciated.
 * I found in one of your videos a small statement that said the optimum size of
   a card was 700 x 525, so I made my logo image 300 x 153 to look a third the size
   of the card. It worked perfectly. (the smaller the logo, the more its expanded
   in the email)
 * I am using outlook to receive the email, but also on an iphone it looks ok now.
 * It’s just very difficult to find information, so I am thankful you are so prompt
   in your support. Thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[eCards Lite] ecard confirmation location](https://wordpress.org/support/topic/ecard-confirmation-location/)
 *  Thread Starter [meushar](https://wordpress.org/support/users/meushar/)
 * (@meushar)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/ecard-confirmation-location/#post-16271717)
 * Thank you very much for your reply
 * The plugin inserts the <p> confirmation statement directly under the <body> opener,
   followed by the <meta>, <scripts>, and <style> areas, followed by the first <
   div>.
 * I have styled the confirmation with absolute positioning just above the card 
   image gallery, which is acceptable.
 *   Forum: [Themes and Templates](https://wordpress.org/support/forum/themes-and-templates/)
   
   In reply to: [[Twenty Twenty-Two] Mobile screensize breakpoint](https://wordpress.org/support/topic/mobile-screensize-breakpoint/)
 *  Thread Starter [meushar](https://wordpress.org/support/users/meushar/)
 * (@meushar)
 * [3 years, 4 months ago](https://wordpress.org/support/topic/mobile-screensize-breakpoint/#post-16229469)
 * Thanks Kathyrn.
 * I appreciate the reply.
 * I want the tablet display to also have the compressed navigation menu.
 * Changing style.min.css is silly because the next upgrade will override it.
 * Ill have a look at the plugin.
 * Many thanks.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wordpress 5.9 site editor template export zip is corrupt](https://wordpress.org/support/topic/wordpress-5-9-site-editor-template-export-zip-is-corrupt/)
 *  Thread Starter [meushar](https://wordpress.org/support/users/meushar/)
 * (@meushar)
 * [3 years, 5 months ago](https://wordpress.org/support/topic/wordpress-5-9-site-editor-template-export-zip-is-corrupt/#post-16133793)
 * I have submitted a ticket for this bug.
 * I had the corrupt zip file repaired by ZipRepair.net which recover all the contents.
 * The error they discovered is:
    Your .zip file had the following issue: End of
   Central Directory record could not be found.
 * This bug occurs regardless of which year theme you begin with, including twentytwentytwo.
   It occurs with only the functions.php and style.css in the child theme. It occurs
   with no plugins active. It occurs with all versions of wordpress from 5.9 to 
   WordPress 6.03
    -  This reply was modified 3 years, 5 months ago by [meushar](https://wordpress.org/support/users/meushar/).
    -  This reply was modified 3 years, 5 months ago by [meushar](https://wordpress.org/support/users/meushar/).
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wordpress v6.0 navigation block cant enter submenu items](https://wordpress.org/support/topic/wordpress-v6-0-navigation-block-cant-enter-submenu-items/)
 *  Thread Starter [meushar](https://wordpress.org/support/users/meushar/)
 * (@meushar)
 * [3 years, 6 months ago](https://wordpress.org/support/topic/wordpress-v6-0-navigation-block-cant-enter-submenu-items/#post-16077323)
 * Thanks James
 * With Twenty Twenty One theme, its the old Appearance->menu method and it works
   fine.
 * With Twenty Twenty Two theme, it does not work.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Event Manager – Events Calendar, Registrations, Sell Tickets with WooCommerce] WP Eventmanager DATE format imports incorrectly](https://wordpress.org/support/topic/wp-eventmanager-date-format-imports-incorrectly/)
 *  Thread Starter [meushar](https://wordpress.org/support/users/meushar/)
 * (@meushar)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/wp-eventmanager-date-format-imports-incorrectly/#post-15797091)
 * Hi Priya
 * I did a bit of database inspection and found that WP EventManager stores dates
   in the US format yyyy-mm-dd hh-mm-ss.
 * If you import the start, end and expiry dates/times in that format (irrespective
   of your date picker setting) then the dates operate correctly.
 * I used WP All Import which gave me access to all the fields I required, including
   expiry date
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Event Manager – Events Calendar, Registrations, Sell Tickets with WooCommerce] WP Eventmanager [past_events] shortcode does not find events](https://wordpress.org/support/topic/wp-eventmanager-past_events-shortcode-does-not-find-events/)
 *  Thread Starter [meushar](https://wordpress.org/support/users/meushar/)
 * (@meushar)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/wp-eventmanager-past_events-shortcode-does-not-find-events/#post-15796794)
 * Thanks Priya
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WP Event Manager – Events Calendar, Registrations, Sell Tickets with WooCommerce] WP Eventmanager DATE format imports incorrectly](https://wordpress.org/support/topic/wp-eventmanager-date-format-imports-incorrectly/)
 *  Thread Starter [meushar](https://wordpress.org/support/users/meushar/)
 * (@meushar)
 * [3 years, 9 months ago](https://wordpress.org/support/topic/wp-eventmanager-date-format-imports-incorrectly/#post-15794222)
 * Hi Priya
    Thanks for the reply. Your own documentation says to use WP All Import
   Pro. That’s why I bought it.
 * I tried Event Manager Migration.
    The documentation states that its exports and
   imports. I only get import. Migration does not allow import of event expiry date
   Migration does not import the image banner to the thumbnail image Migration does
   not allow import of a thumbnail image separate from a banner image Migration 
   does not import the start and end dates suitable to work with the selected_dates
   shortcode Migration needs the date to be in d-m-Y format
 * If you ‘update’ the ‘detailed event’ without making any changes, then all the
   dates work correctly, with correct ordering and selected_datetime working as 
   well. (same as for WP ALL Import), and the thumbnail image is set equal to the
   banner image.
 * I have 1000 events to import. Its impossible to ‘update’ each one to make this
   work. Please help.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress 5.9 search block only returns a single result](https://wordpress.org/support/topic/wordpress-5-9-search-block-only-returns-a-single-result/)
 *  Thread Starter [meushar](https://wordpress.org/support/users/meushar/)
 * (@meushar)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/wordpress-5-9-search-block-only-returns-a-single-result/#post-15654982)
 * Hi Jonathan
 * I reloaded the twenty twenty two theme, and now search works on both the parent
   and the child.
 * Thanks for your help
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wordpress 5.9 site editor template export zip is corrupt](https://wordpress.org/support/topic/wordpress-5-9-site-editor-template-export-zip-is-corrupt/)
 *  Thread Starter [meushar](https://wordpress.org/support/users/meushar/)
 * (@meushar)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/wordpress-5-9-site-editor-template-export-zip-is-corrupt/#post-15646067)
 * Hi mrtom414
 * I spun up a webserver on my local computer and have been playing around with 
   it.
 * Amazingly, it appears to be the child them that causes the error. When I use 
   twenty-twenty-two theme it creates zips without errors. When I use the twenty-
   twenty-two-child theme the errors return.
 * Any idea what to look at that may/may not be on the child theme?
 * My child theme has new template parts, some changes to theme.json and thats all.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [WordPress 5.9 search block only returns a single result](https://wordpress.org/support/topic/wordpress-5-9-search-block-only-returns-a-single-result/)
 *  Thread Starter [meushar](https://wordpress.org/support/users/meushar/)
 * (@meushar)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/wordpress-5-9-search-block-only-returns-a-single-result/#post-15641178)
 * Hi Jonathan
 * Thanks
 * Im using the search.html that comes with twenty-twenty-two.
 * Ill try another search.html.
 *   Forum: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
   
   In reply to: [wordpress 5.9 site editor template export zip is corrupt](https://wordpress.org/support/topic/wordpress-5-9-site-editor-template-export-zip-is-corrupt/)
 *  Thread Starter [meushar](https://wordpress.org/support/users/meushar/)
 * (@meushar)
 * [3 years, 11 months ago](https://wordpress.org/support/topic/wordpress-5-9-site-editor-template-export-zip-is-corrupt/#post-15641172)
 * Thanks mrtom414.
 * That is exactly what I am trying to do so good to know it works.
 * Ill check up how the webserver is compressing files.
 * One additional question if I may:
    do posts and pages found by search get returned
   as links?

Viewing 15 replies - 1 through 15 (of 19 total)

1 [2](https://wordpress.org/support/users/meushar/replies/page/2/?output_format=md)
[→](https://wordpress.org/support/users/meushar/replies/page/2/?output_format=md)