Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create new filter hook 'pb_cover_image' #540

Merged
merged 2 commits into from
Nov 19, 2016

Conversation

ghost
Copy link

@ghost ghost commented Nov 16, 2016

This will allow users who are not storing images locally on the
server to hook in to this filter and use either the data in the
$cover variable or the data in $metadata['pb_cover_image'], in
order to get cover images to display correctly depending on
their specific use case.

This will allow users who are not storing images locally on the
server to hook in to the filter and use either the data in
$cover variable or the data in $metadata['pb_cover_image'], in
order to get cover images to display correctly.
@codecov-io
Copy link

codecov-io commented Nov 16, 2016

Current coverage is 12.44% (diff: 0.00%)

Merging #540 into dev will not change coverage

@@                dev       #540   diff @@
==========================================
  Files            69         69          
  Lines         12140      12140          
  Methods         628        628          
  Messages          0          0          
  Branches          0          0          
==========================================
  Hits           1511       1511          
  Misses        10629      10629          
  Partials          0          0          

Powered by Codecov. Last update fa96803...9da69cb

@greatislander
Copy link
Contributor

Hi @monkecheese, this is a much preferable solution to me. Can I get you to document the hook in the line preceding its first use? I was doing some research into inline documentation and I am going to try to do this for all existing filter and action hooks. https://make.wordpress.org/core/handbook/best-practices/inline-documentation-standards/php/#4-hooks-actions-and-filters

@ghost
Copy link
Author

ghost commented Nov 17, 2016

sure thing, @greatislander!

@ghost
Copy link
Author

ghost commented Nov 17, 2016

@greatislander, what version of pressbooks would this be rolled out in? (i need to put something for the "@SInCE" in the inline documentation)

@greatislander
Copy link
Contributor

@monkecheese 3.9.5.1. Thanks!

@greatislander greatislander merged commit e40f87f into pressbooks:dev Nov 19, 2016
@greatislander greatislander modified the milestone: v3.9.5.1 Nov 22, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants