• Resolved nathanwright

    (@nathanwright)


    Hi,

    I would like to have hooks added to the book page so that I can add actions / filters to do / show things when the page is displayed that are not currently possible with the fields available.

    Please can you provide me with a quote to add this feature.

    Thanks

    Nathan

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author mooberrydreams

    (@mooberrydreams)

    I’ve just added several filters to the book page with version 4.1.22:

    All these filters have the following arguments, in the following order:

    • $book_page_layout – this is a string of HTML that will ultimately be displayed on the screen
    • $book_object – a reference to the object that contains all the book information
    • $attr – the attributes sent in with the shortcode

    Here is the list of filters, hopefully it’s easy to tell where they fall by their names:

    • mbdb_before_book_page
    • mbdb_book_page_before_subtitle
    • mbdb_book_page_after_subtitle
    • mbdb_book_page_before_book_cover
    • mbdb_book_page_after_cook_cover
    • mbdb_book_page_before_buy_links
    • mbdb_book_page_before_download_links
    • mbdb_book_page_after_download_links
    • mbdb_book_page_before_series
    • mbdb_book_page_before_editions
    • mbdb_book_page_before_goodreads
    • mbdb_book_page_after_goodreads
    • mbdb_book_page_before_summary
    • mbdb_book_page_after_summary
    • mbdb_book_page_before_details_section
    • mbdb_book_page_before_pubdate
    • mbdb_book_page_before_publisher
    • mbdb_book_page_before_editor
    • mbdb_book_page_before_illustrators
    • mbdb_book_page_before_cover_artist
    • mbdb_book_page_before_genre
    • mbdb_book_page_before_tag
    • mbdb_extra_book_details
    • mbdb_book_page_before_excerpt
    • mbdb_book_page_after_excerpt
    • mbdb_book_page_before_reviews
    • mbdb_book_page_before_additional_info
    • mbdb_book_page_before_bottom_links
    • mbdb_book_page_after_bottom_links

    Hope this helps with what you were looking for

    Thread Starter nathanwright

    (@nathanwright)

    Thanks for doing that so quickly. Would it be possible to add the following:

    mbdb_book_page_after_buy_links

    So that I can insert stuff after the buy links.

    Thanks again.

    Plugin Author mooberrydreams

    (@mooberrydreams)

    mbdb_book_page_before_download_links is right where after_buy_links would go so that should work for you.

    Thread Starter nathanwright

    (@nathanwright)

    Thanks that’s brilliant 🙂

    Thread Starter nathanwright

    (@nathanwright)

    Hi, I am trying to alter (using a filter) the “About the Author” section but can’t find a hook that allows me to do this. Everything else is working great. Please could you add this. Thanks

    Plugin Author mooberrydreams

    (@mooberrydreams)

    If you are using only the free Mooberry Book Manager base plugin, then your theme is outputting the “About the Author” section and you will need to look into what your theme provides.

    If you have the Multi-Author extension, there is a filter mbdbma_book_content that can be used to add content after the About the Author section. (or in it, using regular expressions.) If you are looking for a filter in there, where would you like it?

    Thread Starter nathanwright

    (@nathanwright)

    Great thanks.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Adding hooks to book page’ is closed to new replies.