dw2
class potf_pdf_on_the_fly_dashboard {
public function __construct() {
add_action( 'wp_dashboard_setup', array( $this, 'add_dashboard_widget' ) );
}
public function add_dashboard_widget() {
wp_add_dashboard_widget(
'potf_pdf_on_the_fly_dw',
__( 'PDF on the fly', 'pdf-on-the-fly' ),
array( $this, 'potf_pdf_on_the_fly_render' ),
array( $this, 'potf_pdf_on_the_fly_submit' )
);
}
public function potf_pdf_on_the_fly_render() {
echo 'code'
}
public function potf_pdf_on_the_fly_submit() {
submt
}
}
new potf_pdf_on_the_fly_dashboard;