Title: execute previous_post_link in an action function
Last modified: August 20, 2016

---

# execute previous_post_link in an action function

 *  [aneeskA](https://wordpress.org/support/users/aneeska/)
 * (@aneeska)
 * [14 years ago](https://wordpress.org/support/topic/execute-previous_post_link-in-an-action-function/)
 * Hi,
 * I need to add an action function so that I am able to execute the function ‘previous_post_link”
   inside the hook function.
 * Can anyone tell me which hook to use?
 * NB : since previous_post_link can only be executed inside the_loop, I have this
   requirement
 * Any pointer is highly appreciate.

The topic ‘execute previous_post_link in an action function’ is closed to new replies.

## Tags

 * [add_action](https://wordpress.org/support/topic-tag/add_action/)
 * [hook](https://wordpress.org/support/topic-tag/hook/)
 * [previous_post_link](https://wordpress.org/support/topic-tag/previous_post_link/)

 * 0 replies
 * 1 participant
 * Last reply from: [aneeskA](https://wordpress.org/support/users/aneeska/)
 * Last activity: [14 years ago](https://wordpress.org/support/topic/execute-previous_post_link-in-an-action-function/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
