Php snippet not working | WordPress.org

[ad_1]

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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer