Support » Plugin: Paid Memberships Pro » [Plugin: Paid Memberships Pro] PMP Member page show in backend

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jason Coleman

    (@strangerstudios)

    There is no easy way. You would have to basically recode them to show up in the admin.

    @strangerstudios,

    Can I use add_menu_page() and add_submenu_page to create those pages?

    Plugin Author Jason Coleman

    (@strangerstudios)

    That would be involved, yes.

    Hi,
    I managed to create a menu and the page in admin panel, but when I try to obtain the content of the page (that created in advance) it only display the shortcode, not the actual content. Eg, it show [pmpro_account].

    I pulled out the content from db directly, similar the code below:
    ‘global $wpdb;
    $sql_query = ‘SELECT DISTINCT * FROM ‘ . $wpdb->posts .
    ‘ WHERE ‘ . $wpdb->posts . ‘.ID=’ . $pageId; $posts = $wpdb->get_results($sql_query);’

    Maybe I using the wrong approach, please advise. Thanks

    Plugin Author Jason Coleman

    (@strangerstudios)

    If you output content directly from the database, you need to run it through the “the_content” filter so WP will apply shortcodes, etc.

    You can use something like:

    echo apply_filters("the_content", $content);

    Plugin Author Jason Coleman

    (@strangerstudios)

    WP_Dummy, how did this go? Consider sharing your code if you worked out a solution.

    Thanks.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘[Plugin: Paid Memberships Pro] PMP Member page show in backend’ is closed to new replies.