function wpbc_print_dialog__show() { ... } . /** * Class WPBC_Listing_Actions__Set_Read_All */ class WPBC_Listing_Actions__Set_Read_All{ const ACTION = 'set_booking_as_read'; /** * Get Action Button * * @return false|string */ public static function get_option() { // In some versions: if ( ! class_exists( 'wpdev_bk_personal' ) ) { return false; } . if ( ! wpbc_is_user_can( self::ACTION, wpbc_get_current_user_id() ) ) { return false; } $css_class = 'ul_dropdown_menu_li_action '; $css_class .= 'ul_dropdown_menu_li_action_' . self::ACTION; $el_id = 'ul_dropdown_menu_li_action_' . self::ACTION; // Option Title. $html = "" . esc_js( __( 'Mark all as read', 'booking' ) ) . ' ' . ''; return $html; } }