geodir_is_page for Editing Place

This topic contains 4 replies, has 2 voices, and was last updated by  Stiofan O’Connor 6 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #417831

    jahusdtc
    Expired Member
    Post count: 162

    I want to add body_class for the Price package on a page for Edit Place.

    (I want to hide something for specific price package via CSS.)

    My question relates to a page with URL like:
    http://my-site.org/wp-admin/post.php?post=1111&action=edit

    I have looked at your very complete explanations on how to add body class, but not sure how to restrict to a post.php like above.

    What would the geodir_is_page BE for page like the URL I mention earlier?
    geodir_is_page(‘post’)????

    Really tried to search for this, but this PRECISE nugget I couldn’t find.

    Thanks for your direction.

    #417832

    jahusdtc
    Expired Member
    Post count: 162
    This reply has been marked as private.
    #417885

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    ‘add-listing’ i think is what you want to look for, but why not just hide it with the price package settings?

    Stiofan

    #418798

    jahusdtc
    Expired Member
    Post count: 162

    Thanks, Stiofan!

    Was trying to do this to remove the Description (Profile) section from Free price package.

    You solved that here: https://wpgeodirectory.com/support/topic/description-and-freepremium-price-packages/

    BTW, there is another editing page that isn’t at add-listing, it’s at something like:
    http://my-site.org/wp-admin/post.php?post=1111&action=edit

    If I want to target it in future, what geodir_is_page would I use?

    Thanks for solving my Description problem elsewhere!

    #418915

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    That is the backend edit page, by default the users are blocked from accessing that page.

    Stiofan

Viewing 5 posts - 1 through 5 (of 5 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount