Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
PUM_Admin_Subscribers_Table::column_email( array $item )
************************************************************************ Recommended. This is a custom column method and is responsible for what is rendered in any column with a name/slug of ‘title’. Every time the class needs to render a column, it first looks for a method named column_{$column_title} – if it exists, that method is run. If it doesn’t exist, column_default() is called instead.
Description Description
This example also illustrates how to implement rollover actions. Actions should be an associative array formatted as ‘slug’=>’link html’ – and you will need to generate the URLs yourself. You could even ensure the links
See also See also
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Warning: foreach() argument must be of type array|object, string given in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 813
Warning: Array to string conversion in /mnt/data/home/502433.cloudwaysapps.com/rhbymdevka/public_html/wp-content/themes/wporg-developer/inc/template-tags.php on line 808
Parameters Parameters
- $item
-
(Required) A singular item (one full row's worth of data)
Return Return
(string) Text to be placed inside the column <td> (movie title only) __________________________________****__________________________________
Source Source
File: classes/Admin/Subscribers/Table.php
function column_email( $item ) { $url = add_query_arg( array( 'page' => $_REQUEST['page'], 'subscriber' => $item['ID'], '_wpnonce' => wp_create_nonce( 'pum_subscribers_table_action_nonce' ), ), admin_url( 'edit.php?page=pum-subscribers&post_type=popup' ) ); $edit_url = add_query_arg( array( 'action' => 'edit', ), $url ); $delete_url = add_query_arg( array( 'action' => 'delete', ), $url ); //Build row actions $actions = array( //'edit' => sprintf( '<a href="%s">Edit</a>', $edit_url ), 'delete' => sprintf( '<a href="%s">Delete</a>', $delete_url ), ); //Return the title contents return sprintf( '%1$s <span style="color:silver">(id:%2$s)</span>%3$s', /*$1%s*/ $item['email'], /*$2%s*/ $item['ID'], /*$3%s*/ $this->row_actions( $actions ) ); }
Expand full source code Collapse full source code View on Trac