Is there a way to keep Infinite SEO open on the Post Page?

Hello, I really like the features with the Infinite SEO metabox, but it defaults to being closed. I'm afraid that my users won't click it to open - and thus never change their description or keywords.

Is there something I can tweak in one of the files to make open?

  • Kimberly

    Hi Emily!

    Welcome to WPMUdev forums!

    I found some interesting info on how these work:

    As Wordpress normally tracks the status of the toggle state of each metabox, you should take care to only initially set the toggle state to close the first time a specific user is visiting the editor or is added to users.

    The data which of those metaboxes are closed is stored inside the users options, each time you toggle a box, there will be an ajax request that is storing it:

    update_user_option($user->ID, "closedpostboxes_$page", $closed, true);

    $closed is a comma-seperated list of all metaboxes IDs that are closed. $page is set to "post" for the post editor (the one you asked for). So when a new user is created (or the plugin is installed for all existing users), you can extend that setting with the ID of your metabox. This should do the job.

    The only thing you need to know is the ID of your metabox, but I'm pretty sure you know that one already. If not, check your code where you register the metabox.

    Additionally, next to the ones that are closed, you can also set those which are hidden btw, which would correspond to the checkboxes. It's the hiddenpostboxes_$page option then.

    This was provided for a thread with someone asking how to make the default closed. So essentially you could find the class and remove the closed

    Best,

    Kimberly

  • Timothy Bowers

    Hey there! :slight_smile:

    Just checking in to see how things are going with this one and if you need any further help. :slight_smile:

    We haven't heard from you on this thread for a while so I'm going to presume your all fixed up now and don't need any further assistance.

    However if you have more questions or need some more help then please feel free to respond in this thread or create a new one and we will be more than happy to offer assistance. :slight_smile:

    Take care.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.