Now when i choose to format the PHP i get this:
- Code: Select all
$my_post = array('post_title' => date("Y:m:d G:i:s") . " " . get_current_user_id(), 'post_content' => $sharetext, 'post_status' => 'publish', 'post_author' => get_current_user_id(), 'post_category' => $category, 'post_type' => 'shares');
I would like to have the posibility the formatter to make like this the arrays. This is great for debugging:
- Code: Select all
$my_post = array (
'post_title' => date ( "Y:m:d G:i:s" ) . " " . get_current_user_id (),
'post_content' => $sharetext,
'post_status' => 'publish',
'post_author' => get_current_user_id (),
'post_category' => $category,
'post_type' => 'shares'
);