Comments et started the conversationMay 13, 2021 at 4:30pmHi I made some pages password protected with wpDataTables but now employee wants the pages in the dashboard instead. I find Wordpress docs on creating custom admin menu with content but when I add shortcode it does not work. please help.function my_admin_menu() { add_menu_page( __( 'Sample page', 'my-textdomain' ), __( 'Sample menu', 'my-textdomain' ), 'manage_options', 'sample-page', 'my_admin_page_contents', 'dashicons-schedule', 3 ); } add_action( 'admin_menu', 'my_admin_menu' ); function my_admin_page_contents() { ?> [wpdatatable id=4] <?php } 2,572Aleksandar repliedMay 14, 2021 at 12:11pmHello there.Only administrators can view wpDataTables in the back-end, so I don't believe this will work.It definitely falls under custom work, which is not included in the provided support for the plugin.Kind Regards, Aleksandar Vuković[email protected] Rate my support wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community You can try wpDataTables add-ons before purchasing on these sandbox sites: Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables Sign in to reply ...
Hi I made some pages password protected with wpDataTables but now employee wants the pages in the dashboard instead. I find Wordpress docs on creating custom admin menu with content but when I add shortcode it does not work. please help.
function my_admin_menu() {
add_menu_page(
__( 'Sample page', 'my-textdomain' ),
__( 'Sample menu', 'my-textdomain' ),
'manage_options',
'sample-page',
'my_admin_page_contents',
'dashicons-schedule',
3
);
}
add_action( 'admin_menu', 'my_admin_menu' );
function my_admin_page_contents() {
?>
[wpdatatable id=4]
<?php
}
Hello there.
Only administrators can view wpDataTables in the back-end, so I don't believe this will work.
It definitely falls under custom work, which is not included in the provided support for the plugin.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables