blobaugh / inbox-status

Easy way to show your unread email count in WordPress themes
0 stars 1 forks source link

Adding PHPdoc comment to register_widget('BlobEmailWidget); #2

Open NikV opened 10 years ago

blobaugh commented 10 years ago

This contains an inline function. The comment is great, however I feel it would be better above the add_action() as it would describe what the entire block of code is doing instead of having the comment inside of it. The reader then has to realize the comment also involves the line of code above it.

Thoughts?

pdclark commented 10 years ago

I've added some minor comments to this version of the widget.

Using IS_Inbox_Status::get_template for the widget content allows the widget output to be overridden in a theme by copying the inbox-status-theme directory into their theme.

Instructions for overriding input added in the templates directory.

See: templates/inbox-status-theme/widget-email-count.php