• Hey threre, I’m using the Aleph plugin, it’s very good and finally I managed to solve almost every task i needed.. just one thing is obscure for me:

    In the readme the author says that you can create custom users view with custom slugs and query.. that’s exactly what I needed, but it seems that i don’t understand how to do it.

    He says:

    After the plugin is loaded, you can add new lists/views using a special function called aleph_register_view:

    add_action('init', 'my_aleph_views', 100);
    
    function my_aleph_views() {
        aleph_register_user_view('view_slug', 'My User List', 'user_key=some_meta_key');
    }

    The question is: WHERE I have to put that code? in my theme’s functions.php? I’ve tried every file but nothing works.. 🙁 please help!

    thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘[Plugin: Aleph] Adding users' views’ is closed to new replies.