How to create custome pdf file of my invioice in wordpress
Assuming you’re creating this as a plugin and you’ve saved the dompdf directory within your plugin directory you can include it with the following. // wp-content/plugins/yourplugin/yourplugin.php // Set up paths to include DOMPDF $plugin_path = plugin_dir_path( __FILE__ ); define( ‘YOURPLUGIN_DOMPDF’, $plugin_path . ‘dompdf/’ ); // Set up directory to save PDF $upload_dir = wp_upload_dir(); define( … Read more