• Resolved jonomteam

    (@jonomteam)


    I want import/add daily manually created XLSX files that contains different user id’s with different information’s and filter table by currenty logged user id’s to show customers only their own information.
    Is it any way to do that

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Syed Numan

    (@annuman)

    Hello @jonomteam,

    Yes, it is possible to use with some custom PHP snippets, but another code snippet plugin needs to be required that provides a shortcode along with the ninja table.

    If the table has a users ID column then you should use the following PHP code in the code snippet and just change the table ID from the code. As the table shortcode is assigned in the PHP snippet then you need to embed the shortcode that is provided by the code Snippet plugin on a page. So, only the users can be able to show only their rows, as the rows will be filtered by users ID.

    <?php global $current_user; wp_get_current_user(); ?>
    <?php
    if ( is_user_logged_in() ) {
        $getEmail = $current_user->user_email;
        $getID = $current_user->user_id;
        echo do_shortcode('[ninja_tables id="Your Table ID Here" filter_column="name"  filter=" ' . $getID . '" ] ');
     }
    ?>

    Thanks

Viewing 1 replies (of 1 total)
  • The topic ‘I want to set only user can their row not other’ is closed to new replies.