• HI!

    I am wondering is it possible to create a conditional tag for a custom database table generated by “Page Security by Contexture”, that way I can show the Page in the Menu to users who belong in the group that have access.

    I tried:

    in_array(‘custom user role group’, $GLOBALS[‘wp_ps_groups’]->group_title)

    -custom user role group: name of the group that has access to a page
    – wp_ps_groups: the database table
    – group_title: column inside wp_ps_groups containing the groups

    Would be great if this is possible :)! Thank you in advance!!

    http://wordpress.org/extend/plugins/menu-items-visibility-control/

Viewing 1 replies (of 1 total)
  • Plugin Author shazdeh

    (@shazdeh)

    Hi,
    try writing a custom function for that and then use that function for the visibility option. It would be cleaner and easier to manage.

Viewing 1 replies (of 1 total)
  • The topic ‘Query based on custom table’ is closed to new replies.