Sorry, I don't think this is a good approach. Forcing the developer to be aware of the need to provide that string manually is not friendly. We should ask for the capability title as a part of the capability declaration. If it is provided, the string should be created automatically. Something like this:
Sorry, I don't think this is a good approach. Forcing the developer to be aware of the need to provide that string manually is not friendly. We should ask for the capability title as a part of the capability declaration. If it is provided, the string should be created automatically. Something like this:
Note the added
title
there which would automatically lead to generating the string.