WordPress.org

Support

Support » Themes and Templates » Cannot add link to profile editing page in functions.php

Cannot add link to profile editing page in functions.php

  • I am trying to add a link to my profile editing page by adding the following to my functions.php:

    /**
     * Adds "Delete Account" option to the profile page.
     */
    add_action( 'show_user_profile', 'modify_profiledelete' );
    function modify_profiledelete( $show ) {
    
        ?>
    	<h3>Account Deletion</h3>
        <tr id="password">
        <th>Delete your profile at the</th>
        <td><a href="http://www.removedforsecurity.com/delete-account">delete account page.</a></td>
        </tr>
        <?php
    
        return false;

    it used to work on Twenty Twelve, but it just makes all of my website a blank page on Twenty Fourteen.

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Cannot add link to profile editing page in functions.php’ is closed to new replies.