• Resolved ahd261

    (@ahd261)


    Hi,
    Into a private page a logged user have access to his bookings in using a shortcode.
    The shortcode looks like at [bookings_id=5] as an example

    I would like to use this dynamically…
    That means in function of the logged user i have to find his appropriated “id” to enter it into his shortcode and displays his booking
    Hope it s approx. clear and thx for your thoughs

Viewing 1 replies (of 1 total)
  • Plugin Author Chad Butler

    (@cbutlerjr)

    That’s a question about your [bookings_id] shortcode – it’s not really related to the plugin. You’d need to look at the shortcode’s callback function to see if it has a hook for filtering the value. If not, you’d probably have to create a custom shortcode (which could be done by copying the original, but naming it something else) and then including a filter hook so you can apply a custom value – OR just recreate it as a custom shortcode that gets the ID from get_current_user_id().

Viewing 1 replies (of 1 total)

The topic ‘WP Member ID’ is closed to new replies.