niznet
Forum Replies Created
-
Sorry for the unclear explanation. The plugin should enqueue its assets only when we call the shortcode. In the picture, these two styles are always enqueued on any page: imgur
Here’s another example, that mycred table breaks due to mega-forms assets having .right property, which sets the float to right while mycred only puts the name without any style applied.
Thanks! That should fulfill what I need.
I will try the
get_page_by_path. Does “mf_submission_completed” or “mf_process_entry_actions” provide WP Hook data if it is configured? or at least the form id?I’m using WP Hook in creating a feature to let my client input specific cells of google Sheets in a custom field, and store the specified cells to the post as metadata that uses the form. Unfortunately, WP Hook doesn’t provide what post id that the form was submitted from.
For now, I’m doing a workaround to make the client put the post id at the end of WP Hook name.
WP Hook Name: mf_spreadsheet
Workaround: mf_spreadshet_123
*123 is the post id, so I can know where the form was displayed and submittedHence suggested a new WP Hooks array structure,
[ 'id' => '1', // form id, since it has own table 'post_id' => 2, // post id, where the form submitted from 'fields' => [] // submitted form fields ]or as arguments something like,
function handle($fields, $post_id, $form_id)Hi, I don’t know if this existed, but I do think that we also need to have the post id as a reference attached to the form submission (wp hook) in case we need to do something with the fields and post itself.
I’m planning to provide a feature that is able to save specific cells from google spreadsheet into the attached form post as metadata.
Currently, WP Hook only provides an array of submitted fields, maybe it can be like,
[ 'id' => '1', // form id 'post_id' => 2, // post id, or maybe reference_id 'fields' => [] // submitted form fields ]Thanks for the update! I will make another one when I come up with another suggestion.
Thanks for the quick update, so far been pleasant, and I’m planning to continue using your plugin for my others clients.
Actually, there is some inconsistent prefix for hook names when I tried to search for available hooks.
I found filter & action names with ‘megaforms_, ‘mf_ and ‘mega_form
I assume ‘mf_ here is the correct one as I have seen them more than others, it would be better if we have one standard as I’m afraid to mistype them.It’s only happening when we enable the debug mode and currently we trying to integrate mycred with the sage theme that in development mode will make a full stop with exception when there’s any undefined array/object key.
Another same issue example with screenshot, in this case, is when calling the mycred_get_content_price() function when we do not set
MYCRED_DEFAULT_TYPE_KEYas the second argument which$setupinside the code leads to null and triggers the warning,- This reply was modified 3 years, 9 months ago by niznet.
Forum: Plugins
In reply to: [Comments - wpDiscuz] Comments not showing in a post with future statusMy bad, it’s a false positive.
Turn out it’s was empty comments bug from imported comments.Forum: Plugins
In reply to: [A-Z Listing] Draft Listed on Index List?this my bad, i didn’t see my friend is set it to Privately Published.