You appear to be a bot. Output may be restricted
Description
Create an action link for the given actionWe 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_Servers_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
voidSource
File name: oik-clone/admin/class-oik-clone-servers-list-table.phpLines:
1 to 16 of 16
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']; $args['section'] = $this->_args['section']; $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 ); }View on GitHub