Make WordPress Core


Ignore:
Timestamp:
11/23/2013 09:57:24 PM (10 years ago)
Author:
DrewAPicture
Message:

Inline documentation for hooks in wp-admin/includes/class-wp-ms-sites-list-table.php.

Props ShinichiN, kpdesign.
Fixes #25607.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-admin/includes/class-wp-ms-sites-list-table.php

    r26120 r26341  
    157157            $sites_columns['plugins'] = __( 'Actions' );
    158158
     159        /**
     160         * Filter the displayed site columns in Sites list table.
     161         *
     162         * @since MU
     163         *
     164         * @param array $sites_columns An array of displayed site columns. Default 'cb',
     165         *                             'blogname', 'lastupdated', 'registered', 'users'.
     166         */
    159167        $sites_columns = apply_filters( 'wpmu_blogs_columns', $sites_columns );
    160168
     
    276284                            $actions['visit']   = "<span class='view'><a href='" . esc_url( get_home_url( $blog['blog_id'], '/' ) ) . "' rel='permalink'>" . __( 'Visit' ) . '</a></span>';
    277285
     286                            /**
     287                             * Filter the action links displayed for each site in the Sites list table.
     288                             *
     289                             * The 'Edit', 'Dashboard', 'Delete', and 'Visit' links are displayed by
     290                             * default for each site. The site's status determines whether to show the
     291                             * 'Activate' or 'Deactivate' link, 'Unarchive' or 'Archive' links, and
     292                             * 'Not Spam' or 'Spam' link for each site.
     293                             *
     294                             * @since 3.1.0
     295                             *
     296                             * @param array  $actions  An array of action links to be displayed.
     297                             * @param int    $blog_id  The site ID.
     298                             * @param string $blogname Site path, formatted depending on whether it is a sub-domain
     299                             *                         or subdirectory multisite install.
     300                             */
    278301                            $actions = apply_filters( 'manage_sites_action_links', array_filter( $actions ), $blog['blog_id'], $blogname );
    279302                            echo $this->row_actions( $actions );
     
    329352                    <?php if ( has_filter( 'wpmublogsaction' ) ) {
    330353                    echo "<td valign='top' class='$column_name column-$column_name'$style>";
     354                        /**
     355                         * Fires inside the auxiliary 'Actions' column of the Sites list table.
     356                         *
     357                         * By default this column is hidden unless something is hooked to the action.
     358                         *
     359                         * @since MU
     360                         *
     361                         * @param int $blog_id The site ID.
     362                         */
    331363                        do_action( 'wpmublogsaction', $blog['blog_id'] ); ?>
    332364                    </td>
     
    336368                default:
    337369                    echo "<td class='$column_name column-$column_name'$style>";
     370                    /**
     371                     * Fires for each registered custom column in the Sites list table.
     372                     *
     373                     * @since 3.1.0
     374                     *
     375                     * @param string $column_name The name of the column to display.
     376                     * @param int    $blog_id     The site ID.
     377                     */
    338378                    do_action( 'manage_sites_custom_column', $column_name, $blog['blog_id'] );
    339379                    echo "</td>";
Note: See TracChangeset for help on using the changeset viewer.