reorder_post_within_categories_capability not working
-
I’m trying to add a capability type using reorder_post_within_categories_capability mentioned in the F&Q’s. The problem is, I can’t get the function to work, and it seems to error with any other example than your default with “parameter 2 to be array, null given in”.
Would it be possible to re-visit how this function works to allow something a bit more straight-forward? Ideally you just pass in a minimum capability like reorder_post_capability(‘custom_capability’), that way you won’t have to loop through every WordPress capability, find a match, then do a check on the one returned by reorder_post_within_categories_capability.
If you have any questions, I’m happy to assist where possible.
- The topic ‘reorder_post_within_categories_capability not working’ is closed to new replies.