Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @vivibosslink,

    Both links seem to be pointing to the same files.
    The first one of the images there is just a check to prevent accessing a PHP file directly – that is not needed in the case of snippets as there’s no “file”.

    The second snippet is attempting to change the login url but it’s dependent on a setting in a plugin or theme from what I can see – if that function does not exist or the setting is not set it will not work or have any effect.

    Are you getting an error when trying to activate the snippet?
    From what I can see the issue is not with WPCode but with the snippets, if someone sent them to you I suggest asking them for assistance setting them up.

    Thread Starter Vivian E

    (@vivibosslink)

    I tried the snippets separately. that is one after another and neither worked at each time!

    About the first snippet? which file do you refer to that is missing? I’m trying to hide a bbpress form that appears to logged out users of my site. same snippet provided have been reported by others to work.

    About the second snippet. I have the plugin installed.

    In both cases I didn’t get any error message on wp code.

    What could be wrong ?

    Plugin Author Mircea Sandu

    (@gripgrip)

    Hi @vivibosslink,

    Sorry if for the misunderstanding. There is no file missing, I think the link is not correct in the initial message you added as both links point to the same pictures.

    For the second snippet – is there a value set for the “core_login” option? It looks like that has to be set to a page and that page needs to exist for the code to work.
    Without more context on your site it’s not possible to debug further – please reach out via the form at https://wpcode.com/contact to share credentials to your site privately and we’ll be happy to try to assist further.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Php snippet not working’ is closed to new replies.