This guide provides the best, quick and simple way to integrating Mailgun’s SMTP into Codeigniter using Email Class.
Before starting I assume that you already create custom field i.e. “_pdf_download_link” for PDF field. Please follow below steps to force PDF to download.
Sometime we need to write a custom SQL query to fetch users. The $wpdb object can be used to run queries against the WordPress database. Here is an example of it.