Support » Plugin: Delete Me » HTML tag

  • Resolved kelsjc

    (@kelsjc)



    Hi

    Is there any HTML code to insert into the page? I cannot insert php code, only html. Can you help me please?

    Thank you

    Kelson

Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author cmc3215

    (@cmc3215)

    Hi Kelson,

    Thanks for your question.

    It is not clear where you are trying to use Delete Me.

    However, you can use the shortcode [plugin_delete_me /] in a WordPress Post or Page.

    PHP code is required to insert the shortcode into a template file.

    Regards,
    Clint

    kelsjc

    (@kelsjc)

    Hi Clint

    I am trying to use Delete Me in a WP theme. The page i want to use it, the html is constructed by an php array, so i cannot insert the php code on it.

    When I use [plugin_delete_me /] directly on the page, i see only the text
    [plugin_delete_me /], no link, no label.

    What is going on, why do i see text? Or…Is there any html code to call this function?

    Thanks

    Kelson

    • This reply was modified 8 months ago by  kelsjc.
    kelsjc

    (@kelsjc)

    N/A

    • This reply was modified 8 months ago by  kelsjc.
    kelsjc

    (@kelsjc)

    Hi Clint

    I used a text widget and wrote [plugin_delete_me /] but still shows me as a text not as a link. Can you please help me?

    Thanks

    Kelson

    kelsjc

    (@kelsjc)

    Also I have put add_filter but still do not work. Should i change the name of “widget_text”?

    add_filter( ‘widget_text’, ‘do_shortcode’ );

    Tks

    Plugin Author cmc3215

    (@cmc3215)

    Hello Kelson,

    I’m sorry to hear you’re not having much luck with using my plugin. Perhaps the Text Widget installation instructions below will help you.

    The ways you can make this plugin work are listed at https://wordpress.org/plugins/delete-me/#installation

    Advanced: Shortcode Usage
    
    Custom Profile Page – Copy and paste the Shortcode [plugin_delete_me /] into the Post or Page you’ve created.
    
    Theme File – To call the Shortcode in one of your .php Theme files, use <?php echo do_shortcode( '[plugin_delete_me /]' ); ?>.
    
    Text Widget – To use the Shortcode in a Text Widget, make sure the line add_filter( 'widget_text', 'do_shortcode' ); appears in your Theme Functions (functions.php) file.

    Regards,
    Clint

    Plugin Author cmc3215

    (@cmc3215)

    Hi Kelson,

    I see you’ve already tried the text widget method. In order for the plugin to work, you must have access to one of those installation methods I posted. There is no HTML only alternative, the plugin requires PHP either thru a site owner’s template file or the WordPress Post or Widget system.

    Regards,
    Clint

    kelsjc

    (@kelsjc)

    Hi Clint

    Finally I got it working! 🙂 Here are the problems found:

    1) I had deactivated and forgot to activated the plugin again (this is why I got only text). Shame! Sorry for that!

    2) The link was still missing, blank value. I realise that I was logged as admin and administrators cannot delete themselves. This is not critical but I had no idea what was going on. So would be easier if you put a message like “The link is not available for administrators”

    Now I am getting another problem and hope you can give me a light.

    I am using the WP Theme Superlist (https://themeforest.net/item/superlist-directory-wordpress-theme/13507181). When the user delete its account, it all goes away except the marker on google maps. So how can I change your code in order to also delete the marker on the map? Can you help me with this issue? Many thanks!

    Regards,

    Kelson

    Plugin Author cmc3215

    (@cmc3215)

    Hi Kelson,

    I’m glad you were able to figure things out and get it working 🙂

    The link was still missing, blank value. I realise that I was logged as admin and administrators cannot delete themselves. This is not critical but I had no idea what was going on. So would be easier if you put a message like “The link is not available for administrators”

    That is a good idea. I will consider doing so in the next release. Thanks.

    When I have time, I’ll take a look at the link you sent and see if I can help.

    Regards,
    Clint

    Plugin Author cmc3215

    (@cmc3215)

    Hello Kelson,

    I am using the WP Theme Superlist (https://themeforest.net/item/superlist-directory-wordpress-theme/13507181). When the user delete its account, it all goes away except the marker on google maps. So how can I change your code in order to also delete the marker on the map? Can you help me with this issue? Many thanks!

    I looked at the theme you mentioned, but unfortunately I am unable to provide a solution for removing the marker from Google Maps. Because it is a paid theme, I could not look at the back end or PHP code to assess further.

    It should be noted that my plugin deletes users by calling the standard built-in WordPress function for deleting users, wp_delete_user. The theme developer should really be notified that the markers remain after a user is deleted. They do not even have to be aware of or compatible with my plugin specifically because I use the standard WordPress function.

    Regards,
    Clint

    Plugin Author cmc3215

    (@cmc3215)

    The link was still missing, blank value. I realise that I was logged as admin and administrators cannot delete themselves. This is not critical but I had no idea what was going on. So would be easier if you put a message like “The link is not available for administrators”

    This suggestion has just been added in Delete Me version 2.6.

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.