WordPress.org

Forums

Twenty Fourteen
Cannot add link to profile editing page in functions.php (2 posts)

  1. jamcat22
    Member
    Posted 11 months ago #

    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.

  2. jamcat22
    Member
    Posted 9 months ago #

    Can anyone tell me why this would be happening?

Reply

You must log in to post.

About this Theme

About this Topic