Viewing 1 replies (of 1 total)
  • Michael Beckwith

    (@tw2113)

    The BenchPresser

    Doesn’t look like it at the moment, regarding setting has_archive to false. A lot of the internal/default ones have a filter on that spot, but the function used for the user-based achievements sadly does not.

    That said, I did file an enhancement issue for you regarding the topic, just in case we decide to officially change the fact.

    https://github.com/opencredit/badgeos/issues/469

    If you’re really code-crafty, I think this may be a potential solution. Using http://codex.wordpress.org/Function_Reference/get_post_type_object you could fetch the arguments object used for a given post type, change the parts you want, and re-register with the exact same arguments. I’d recommend doing it on a lower priority than 8, on the init hook, which is what we use in BadgeOS. Priority of at least 9 or numerically higher. Do note, in case you weren’t aware, the lower the number, the higher the priority. 1 is extremely high while 99 will likely put things at the very end. Test it out, see what you come up with, if you decide to 😀 Let me know how it turns out if you do.

Viewing 1 replies (of 1 total)

The topic ‘Archive Page’ is closed to new replies.