Skip Navigation

[Resolved] Saving Front-End Form Not Updating Some Things on Back-End

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Kolkata (GMT+05:30)

This topic contains 9 replies, has 2 voices.

Last updated by Minesh 1 year, 8 months ago.

Assisted by: Minesh.

Author
Posts
#2580633

Kind of a unique situation. I've got a front-end Cred form that saves/updates all the cpt custom fields, which is working fine. But I'm using the Rank Math SEO plugin and I've also added those fields on this front end form (SEO keyword, title, meta description) by having them be Managed By Types and using generic fields. This is also working fine. The issue is that RankMath takes into account these SEO keyword/Title/Description (as well as other factors) and generates an SEO Score for the posts, which I also have output on the front-end of my site. But after I update the keyword/title/description with the front-end form the score does not adjust which it should. But then if I go into the backend and click Update, then the post the score updates.

So I guess the issue is that only on a back-end Update is the Rank Math algorithm(?) being run. So is there someway I can have the back-end Update get triggered when I Save the form on the front-end?

I also have some code in my functions file, that Toolset helped me with, that copies some of my custom fields into the standard WP editor field. This too only works on a back-end Update.

Thanks,

Tim

#2581093

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

To recalculate the rank math SEO score we are not sure what code behind mechanism they are using or what is the formula to recalculate the SEO score.

I suggest you should ask this question to Rank Math SEO support and check with them if they have any filter hooks or what is the formula to recalculate/update the SEO score of it is possible from frontend form submit.

#2581713

Thanks, but I'm asking if there's a way Iwith toolset or some simple codeI could add to my functions file that could trigger a back-end Update when I do a frotn-end cred form update. Becuase it's not just a Rank Math issue, as I said in my first post:

"I also have some code in my functions file, that Toolset helped me with, that copies some of my custom fields into the standard WP editor field. This too only works on a back-end Update."

Tim

#2582017

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

"I also have some code in my functions file, that Toolset helped me with, that copies some of my custom fields into the standard WP editor field. This too only works on a back-end Update."
===>
I understand that and I know you shared this information but with that code what you are doing is on frontend form submit you are updating/coping custom field values thats normal thing.

The thing is that we do not what what actions/hook needs to be trigger or what things/data require to perform or recalculating the SEO score that is done from backend. The business login for the same is written by the plugin author and they know better if there is a way to update the SEO score from the frontend form submit and if yes, what action hooks required to fire and what content is require to perform the action.

#2582125

Ok, so you are saying that the custom code that I have in the functions file that copies my custom fields to the Editor field, on back-end update, also could not be triggered from a front-end submit to copy those fields into the Editor field? Because if that is so then there's no point in me contacting RankMath, because RankMath also uses the Editor content in its calculations.

Tim

#2582157

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

It seems you are not getting me what I'm saying.

To calculate the SEO score rank math SOE must have added third formula and to calculate that formula they must be using some hooks/action and as Toolset supporter we do not know what is the business login behind calculating the SEO score.

They are the best person to get information that how you can recalculate the SEO score from frontend and using what parameters you can calculate it and what data is required to calculate that or is it possible even to calculate SEO score from frontend. As I do not have any solution or workaround to offer you in this matter as I do not have nay information about how to calculate SEO score.

#2582935

Yes, I do understand what you are saying. I was just asking if there was a way to "trigger" the back-end post Update button action when I Save a front-end cred form, as this would solve the problem because it would then run the RankMath calculations. I'll certainly reach out to RankMat, but I just thought if that was possible then there may not even be a need to involve RankMath.

Tim

#2582939

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

There is no such way or feature or even workaround that you can click on backend update button while you are on frontend.

#2582957

I assume save_post fires on saving a front end form, but how about just also firing the wp_publish_post function? I guess this os for changing the status to Publish, but wouldn't it accomplish the same thing?

#2582973

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

No - sorry, there is no workaround I've for you at the moment.

Simply I do not have any way to offer you that should submit the backend form or click on publish button when you submit the frontend Toolset form.

As shared you will require to contact Rank Math plugin support to know what hooks you can use or even if its possible or not to update SEO score from frontend when you submit the Toolset form.

This is pure custom programming query and such custom programming is beyond the scope of our support policy. If you need custom programming for you project, you're welcome to contact any of our certified partners:
=> https://toolset.com/contractors/