You appear to be a bot. Output may be restricted
Description
Create an action link for the given action
We need to add the page and tab to the args array passed which should already consist of the other parameters needed to implement the action such as the source and target IDs and other parameters for this specific instance //$ID = $item['ID']; //&source=$ID Is this better than using add_query_arg()?
Usage
OIK_Clone_List_Table::create_action_link( $item, $action, $action_string, $args );
Parameters
- $item
- ( mixed ) required –
- $action
- ( mixed ) required –
- $action_string
- ( mixed ) required –
- $args
- ( mixed ) optional –
Returns
void
Source
File name: oik-clone/admin/class-oik-clone-list-table.php
Lines:
1 to 18 of 18
function create_action_link( $item, $action, $action_string, $args=array() ) { //bw_trace2( $this->screen ); //bw_trace2( $this->_args ); $args['page'] = $this->_args['page']; $args['tab'] = $this->_args['tab']; if ( $this->source && $this->source_field ) { $args[ $this->source_field ] = $this->source; } $args['clone_post_type'] = $this->clone_post_type; $flatargs = null; if ( count( $args ) ) { foreach ( $args as $key => $value ) { $flatargs .= "&$key=$value"; } } $link = retlink( null, admin_url("admin.php?action=$action${flatargs}"), $action_string ); return( $link ); }