« first day (2354 days earlier)      last day (2590 days later) » 

2:02 PM
I'm proposing to merge the 'styles' and 'stylesheet' tags into 'css'. There should be plenty of people eligible to vote it up or down here: wordpress.stackexchange.com/tags/css/synonyms
 
 
2 hours later…
3:59 PM
can't believe there's not a function like post_type_can( $capability, $post_type )
 
4:21 PM
something like if ( post_type_can( 'delete_post', $post->post_type ) && current_user_can( 'delete_post', $post->ID ) ) {
 
@MichaelEcklund You can probably make that function, get_post_type_capabilities() exists. Maybe submit a ticket to trac.
 
I already made the function lol
and I actually tried to use that function within my function. I got PHP errors.
So instead, I just get_post_type_object( $post_type );
and I check $post_type_object->cap
I was just shocked that there's no function like that already.
 

« first day (2354 days earlier)      last day (2590 days later) »