Quantcast
Channel: Development | Jeff Farthing Web Solutions
Viewing all articles
Browse latest Browse all 10

Changing Action Links

$
0
0

Action links can be changed by using the tml_action_url filter. This filter passes in three arguments to your callback function. The first argument is the current action URL being filtered. The second argument is the current action being used. The third argument is the instance identifier.

Let’s say you wanted to change the Register action link to a different URL:

function tml_action_url( $url, $action, $instance ) {
	if ( 'register' == $action )
		$url = 'YOUR REGISTRATION URL HERE';
	return $url;
}
add_filter( 'tml_action_url', 'tml_action_url', 10, 3 );

Viewing all articles
Browse latest Browse all 10

Latest Images

Trending Articles





Latest Images