• Resolved NickGreen

    (@nickirongate)


    Options menu wasn’t showing up in the dashboard or on the individual pages, so I replaced the code on line 348 in wp-mpdf.php with this code:

    add_action( 'admin_menu', 'wp_mpdf_menu' );
    
    function wp_mpdf_menu() {
    	add_options_page( 'WP-MPDF Options', 'WP-MPDF', 'manage_options', 'wp-mpdf', 'mpdf_admin' );
    
    	if(function_exists('add_meta_box')) {
    		add_meta_box('mpdf_admin', 'wp-mpdf', 'mpdf_admin_printeditbox', 'post', 'normal', 'high');
    		add_meta_box('mpdf_admin', 'wp-mpdf', 'mpdf_admin_printeditbox', 'page', 'normal', 'high');
    	}
    	else {
    		add_action('dbx_post_advanced', 'mpdf_admin_printeditbox_old');
        	add_action('dbx_page_advanced', 'mpdf_admin_printeditbox_old');
    	}
    }

    This solves the issue of the options not showing in the dashboard.
    https://wordpress.org/plugins/wp-mpdf/

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘How I fixed the options menu’ is closed to new replies.