the_permalink

the_permalink

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.5.2

apply_filters('the_permalink') is found 3 times:

  • /wp-includes/comment-template.php line 2596
    			sprintf(
    				/* translators: %s: Login URL. */
    				__( 'You must be <a href="%s">logged in</a> to post a comment.' ),
    				/** This filter is documented in wp-includes/link-template.php */
    				wp_login_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) )
    			)
    		),
    		'logged_in_as'         => sprintf(
    			'<p class="logged-in-as">%s%s</p>',
    			sprintf(
    				/* translators: 1: User name, 2: Edit user link, 3: Logout URL. */
    
  • /wp-includes/comment-template.php line 2607
    				__( 'Logged in as %1$s. <a href="%2$s">Edit your profile</a>. <a href="%3$s">Log out?</a>' ),
    				$user_identity,
    				get_edit_user_link(),
    				/** This filter is documented in wp-includes/link-template.php */
    				wp_logout_url( apply_filters( 'the_permalink', get_permalink( $post_id ), $post_id ) )
    			),
    			$required_text
    		),
    		'comment_notes_before' => sprintf(
    			'<p class="comment-notes">%s%s</p>',
    			sprintf(
    
  • /wp-includes/link-template.php line 27
    	 *
    	 * @param string      $permalink The permalink for the current post.
    	 * @param int|WP_Post $post      Post ID, WP_Post object, or 0. Default 0.
    	 */
    	echo esc_url( apply_filters( 'the_permalink', get_permalink( $post ), $post ) );
    }
    
    /**
     * Retrieves a trailing-slashed string if the site is set for adding trailing slashes.
     *
     * Conditionally adds a trailing slash if the permalink structure has a trailing
    

See this hook used in plugins: