handle_row_actions example

/** * @since 4.3.0 * * @param WP_Post $post * @param string $classes * @param string $data * @param string $primary */
    protected function _column_title( $post$classes$data$primary ) {
        echo '<td class="' . $classes . ' page-title" ', $data, '>';
        echo $this->column_title( $post );
        echo $this->handle_row_actions( $post, 'title', $primary );
        echo '</td>';
    }

    /** * Handles the title column output. * * @since 4.3.0 * * @global string $mode List table view mode. * * @param WP_Post $post The current WP_Post object. */
 elseif ( method_exists( $this, '_column_' . $column_name ) ) {
                echo call_user_func(
                    array( $this, '_column_' . $column_name ),
                    $item,
                    $classes,
                    $data,
                    $primary
                );
            } elseif ( method_exists( $this, 'column_' . $column_name ) ) {
                echo "<td $attributes>";
                echo call_user_func( array( $this, 'column_' . $column_name )$item );
                echo $this->handle_row_actions( $item$column_name$primary );
                echo '</td>';
            } else {
                echo "<td $attributes>";
                echo $this->column_default( $item$column_name );
                echo $this->handle_row_actions( $item$column_name$primary );
                echo '</td>';
            }
        }
    }

    /** * Generates and display row actions links for the list table. * * @since 4.3.0 * * @param object|array $item The item being acted upon. * @param string $column_name Current column name. * @param string $primary Primary column name. * @return string The row actions HTML, or an empty string * if the current column is not the primary column. */
/** * @since 4.3.0 * * @param WP_User $user * @param string $classes * @param string $data * @param string $primary */
    protected function _column_blogs( $user$classes$data$primary ) {
        echo '<td class="', $classes, ' has-row-actions" ', $data, '>';
        echo $this->column_blogs( $user );
        echo $this->handle_row_actions( $user, 'blogs', $primary );
        echo '</td>';
    }

    /** * Handles the sites column output. * * @since 4.3.0 * * @param WP_User $user The current WP_User object. */
    public function column_blogs( $user ) {
        
Home | Imprint | This part of the site doesn't use cookies.