WordPress.org

Ready to get started?Download WordPress

Forums

DJD Site Post
[resolved] I would like to change uout put text (2 posts)

  1. donsilvernail
    Member
    Posted 4 months ago #

    I would like to change the output of "Notice: Please login or register to use this function."

    I would like it to say please login or register with a button after that that links to my registration page.

    Here is the html for my button and link
    "http://storyshare.org/create-story/"><button class="btn btn-large btn-primary" type="button">Large button</button>

    I know where to add this in the plugin in php. If you could give me the proper php code format to input I would be ok to do myself.

    Thanks

    https://wordpress.org/plugins/djd-site-post/

  2. djarzyna
    Member
    Plugin Author

    Posted 4 months ago #

    You could try it this way:

    In djd-site-post.php around line 465 replace the line

    return $this->format_error_msg(__("Please login or register to use this function.", 'djd-site-post'),__("Notice", 'djd-site-post'));

    with something like this:

    $str = "<a href='http://localhost/wptest/wp-login.php'><button class='btn btn-large btn-primary'>Please Login or Register</button></a>";
    return $str;

    Obviously you have to replace http://localhost/wptest/wp-login.php with your own correct url/path to the login/registration form.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.