PDF & Print by BestWebSoft 2.4.7 has 15 actions and 23 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when PDF & Print by BestWebSoft fires an action
add_action( 'bwsplgns_mpdf', function( $mpdf ) {
// Your code runs here.
}, 10, 1 );
// Change a value PDF & Print by BestWebSoft is about to use
add_filter( 'bwsplgns_get_pdf_print_content', function( $post_visible, $p ) {
// Change $post_visible here.
return $post_visible;
}, 10, 2 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Action - Display custom options on the Import / Export' tab */ do_action( "{__CLASS__}_additional_import_export_options" ); -
/** * Action - Display custom options on the Import / Export' tab */ do_action( "{__CLASS__}_additional_import_export_options_affected" ); -
/** * Action - Display custom options on the Import / Export' tab */ do_action( "{__CLASS__}_additional_misc_options" ); -
/** * Action - Display custom options on the 'misc' tab */ do_action( "{__CLASS__}_additional_misc_options_affected" ); -
/** * Filter - Change default_options array OR process custom functions */ apply_filters( "{__CLASS__}_additional_restore_options", $this->default_options ); -
/** * Action - Display custom error\message\notice */ do_action( "{__CLASS__}_display_custom_messages", $save_results ); -
{__CLASS__}_display_metabox
action/** * Action - Display custom metabox */ do_action( "{__CLASS__}_display_metabox" ); -
/** * Action - Display additional content for #postbox-container-2 */ do_action( "{__CLASS__}_display_second_postbox" ); -
/** * Action - Display additional content for #misc-publishing-actions */ do_action( "{__CLASS__}_information_postbox_bottom" ); -
/** * Action - Display additional content for #misc-publishing-actions */ do_action( "{__CLASS__}_information_postbox_top" ); -
apply_filters( 'bwsplgns_get_pdf_print_content', $post_visible, $p ); -
bwsplgns_get_pdf_print_title
filterapply_filters( 'bwsplgns_get_pdf_print_title', apply_filters( 'the_title', $p->post_title, $p->ID ), $p ); -
apply_filters( 'bwsplgns_pdf_print_remove_shortcodes', array( 'vc_', 'az_', 'multilanguage_switcher' ) ); -
apply_filters( 'pdfprnt_show_buttons_for_custom_post_type', 'pdf', $show_button_pdf ); -
the_content
filterapply_filters( 'the_content', $post_content ); -
the_title
filterapply_filters( 'the_title', $p->post_title, $p->ID ); -
do_action_ref_array( "{__CLASS__}_after_tab_{$tab_slug}", array( &$this ) ); -
bws_shortcode_button_content
filterapply_filters( 'bws_shortcode_button_content', '' ); -
apply_filters( 'bwsplgns_add_pdf_print_styles', array() ); -
bwsplgns_mpdf
actiondo_action_ref_array( 'bwsplgns_mpdf', array( &$mpdf ) ); -
apply_filters( 'bwsplgns_pdf_customize_content', $post_content ); -
do_action( 'bwsplgns_pdf_print_the_content' ); -
bwsplgns_pdf_replace_content
filterapply_filters( 'bwsplgns_pdf_replace_content', $post_content ); -
apply_filters( 'bwsplgns_remove_content_filters', true ); -
pdfprnt_add_atribute_rel
filterapply_filters( 'pdfprnt_add_atribute_rel', $link, $url, $button, $target, $image, $title ); -
apply_filters( 'pdfprnt_add_atribute_rel_widget_pdf', $buttons_pdf, $pdf_url, $target, $button_image, $button_title ); -
apply_filters( 'pdfprnt_add_atribute_rel_widget_print', $buttons_print, $print_url, $button_image, $button_title ); -
pdfprnt_add_meta_tag_robots
filterapply_filters( 'pdfprnt_add_meta_tag_robots', $html ); -
pdfprnt_before_save_options
filterapply_filters( 'pdfprnt_before_save_options', $this->options ); -
pdfprnt_current_url_filter
filterapply_filters( 'pdfprnt_current_url_filter', $current_url ); -
do_action( 'pdfprnt_display_settings_search_engine_visibility', $this->options, $this->change_permission_attr ); -
do_action( 'pdfprnt_display_settings_woocommerce', $this->options, $this->change_permission_attr ); -
apply_filters( 'pdfprnt_get_additional_options_default', $options_default ); -
pdfprnt_get_pdf_page_sizes
filterapply_filters( 'pdfprnt_get_pdf_page_sizes', $page_sizes ); -
apply_filters( 'pdfprnt_prevent_display_buttons', $check_page ); -
do_action( 'pdfprnt_rewrite_posts_woocommerce' ); -
pdfprnt_woocommerce_layout
filterapply_filters( 'pdfprnt_woocommerce_layout', $html, $is_print ); -
widget_title
filterapply_filters( 'widget_title', $instance['title'], $instance, $this->id_base );
Generated from PDF & Print by BestWebSoft's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: