Link Metabox field to field in another plugin?

Support MB Frontend Submission Link Metabox field to field in another plugin?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #39517
    KeithKeith
    Participant

    I'm allowing users to submit posts from the frontend. Some of these posts may have been written someone else first, so we need to allow them to enter the canonical URL. I have All-in-one SEO installed which provides a way to update the canonical URL for each post in wp-admin, so I'm figuring out how I can create a metabox field to show on the frontend submission and have it update the canonical URL field.

    Anynone know how to accomplish this?

    #39556
    PeterPeter
    Moderator

    Hello Keith,

    If the canonical URL field of All-in-one SEO saved value to the database as a custom field, then you can use the form hook to update the field value by using the WordPress function update_post_meta().

    Please get more details on the documentation
    https://docs.metabox.io/extensions/mb-frontend-submission/#form-hooks
    https://developer.wordpress.org/reference/functions/update_post_meta/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.