row_actions example


                ),
                __( 'Complete request' )
            );
            $complete_request_markup .= '</span>';
        }

        if ( ! empty( $complete_request_markup ) ) {
            $row_actions['complete-request'] = $complete_request_markup;
        }

        return sprintf( '<a href="%1$s">%2$s</a> %3$s', esc_url( 'mailto:' . $item->email )$item->email, $this->row_actions( $row_actions ) );
    }

    /** * Displays the next steps column. * * @since 4.9.6 * * @param WP_User_Request $item Item being shown. */
    public function column_next_steps( $item ) {
        $status = $item->status;

        
/** * Filters the action links displayed under each user in the Network Admin Users list table. * * @since 3.2.0 * * @param string[] $actions An array of action links to be displayed. Default 'Edit', 'Delete'. * @param WP_User $user WP_User object. */
        $actions = apply_filters( 'ms_user_row_actions', $actions$user );

        return $this->row_actions( $actions );
    }
}
protected function handle_row_actions( $item$column_name$primary ) {
        if ( $primary !== $column_name ) {
            return '';
        }

        $att_title = _draft_or_post_title();
        $actions   = $this->_get_row_actions(
            $item, // WP_Post object for an attachment.             $att_title
        );

        return $this->row_actions( $actions );
    }
}


    /** * Actions column. Overridden by children. * * @since 4.9.6 * * @param WP_User_Request $item Item being shown. * @return string Email column markup. */
    public function column_email( $item ) {
        return sprintf( '<a href="%1$s">%2$s</a> %3$s', esc_url( 'mailto:' . $item->email )$item->email, $this->row_actions( array() ) );
    }

    /** * Returns the markup for the next steps column. Overridden by children. * * @since 4.9.6 * * @param WP_User_Request $item Item being shown. */
    public function column_next_steps( $item ) {}

    

            $actions = apply_filters( 'post_row_actions', $actions$post );
        }

        return $this->row_actions( $actions );
    }

    /** * Outputs the hidden row displayed when inline editing * * @since 3.1.0 * * @global string $mode List table view mode. */
    public function inline_edit() {
        global $mode;

        

                        $row .= apply_filters( 'manage_users_custom_column', '', $column_name$user_object->ID );
                }

                if ( $primary === $column_name ) {
                    $row .= $this->row_actions( $actions );
                }
                $row .= '</td>';
            }
        }
        $row .= '</tr>';

        return $row;
    }

    /** * Gets the name of the default primary column. * * @since 4.3.0 * * @return string Name of the default primary column, in this case, 'username'. */

        $actions = apply_filters( 'manage_sites_action_links', array_filter( $actions )$blog['blog_id']$blogname );

        return $this->row_actions( $actions );
    }
}

        $actions = apply_filters( "{$taxonomy}_row_actions", $actions$tag );

        return $this->row_actions( $actions );
    }

    /** * @param WP_Term $tag Term object. * @return string */
    public function column_description( $tag ) {
        if ( $tag->description ) {
            return $tag->description;
        } else {
            return '<span aria-hidden="true">&#8212;</span><span class="screen-reader-text">' .
                

        $actions = apply_filters( "theme_action_links_{$stylesheet}", $actions$theme$context );

        echo $this->row_actions( $actions, true );
    }

    /** * Handles the description column output. * * @since 4.3.0 * * @global string $status * @global array $totals * * @param WP_Theme $theme The current WP_Theme object. */
$actions           = array();
        $actions['edit']   = '<a href="' . $edit_link . '">' . __( 'Edit' ) . '</a>';
        $actions['delete'] = sprintf(
            '<a class="submitdelete" href="%s" onclick="return confirm( \'%s\' );">%s</a>',
            wp_nonce_url( "link.php?action=delete&amp;link_id=$link->link_id", 'delete-bookmark_' . $link->link_id ),
            /* translators: %s: Link name. */
            esc_js( sprintf( __( "You are about to delete this link '%s'\n 'Cancel' to stop, 'OK' to delete." )$link->link_name ) ),
            __( 'Delete' )
        );

        return $this->row_actions( $actions );
    }
}
$extra_classes = '';
            if ( in_array( $column_name$hidden, true ) ) {
                $extra_classes = ' hidden';
            }

            switch ( $column_name ) {
                case 'cb':
                    echo "<th scope='row' class='check-column'>$checkbox</th>";
                    break;
                case 'name':
                    echo "<td class='plugin-title column-primary'><strong>$plugin_name</strong>";
                    echo $this->row_actions( $actions, true );
                    echo '</td>';
                    break;
                case 'description':
                    $classes = 'column-description desc';

                    echo "<td class='$classes{$extra_classes}'> <div class='plugin-description'>$description</div> <div class='$class second plugin-version-author-uri'>";

                    $plugin_meta = array();
                    if ( ! empty( $plugin_data['Version'] ) ) {
                        

                ),
                __( 'Complete request' )
            );
            $complete_request_markup .= '</span>';
        }

        if ( ! empty( $complete_request_markup ) ) {
            $row_actions['complete-request'] = $complete_request_markup;
        }

        return sprintf( '<a href="%1$s">%2$s</a> %3$s', esc_url( 'mailto:' . $item->email )$item->email, $this->row_actions( $row_actions ) );
    }

    /** * Outputs the Next steps column. * * @since 4.9.6 * * @param WP_User_Request $item Item being shown. */
    public function column_next_steps( $item ) {
        $status = $item->status;

        
Home | Imprint | This part of the site doesn't use cookies.