decrement_update_count example


    public function before( $title = '' ) {
        parent::before( $this->plugin_info['Title'] );
    }

    /** * @param string $title */
    public function after( $title = '' ) {
        parent::after( $this->plugin_info['Title'] );
        $this->decrement_update_count( 'plugin' );
    }

    /** */
    public function bulk_footer() {
        parent::bulk_footer();

        $update_actions = array(
            'plugins_page' => sprintf(
                '<a href="%s" target="_parent">%s</a>',
                self_admin_url( 'plugins.php' ),
                
public function after() {
        $this->plugin = $this->upgrader->plugin_info();
        if ( ! empty( $this->plugin ) && ! is_wp_error( $this->result ) && $this->plugin_active ) {
            // Currently used only when JS is off for a single plugin update?             printf(
                '<iframe title="%s" style="border:0;overflow:hidden" width="100%%" height="170" src="%s"></iframe>',
                esc_attr__( 'Update progress' ),
                wp_nonce_url( 'update.php?action=activate-plugin&networkwide=' . $this->plugin_network_active . '&plugin=' . urlencode( $this->plugin ), 'activate-plugin_' . $this->plugin )
            );
        }

        $this->decrement_update_count( 'plugin' );

        $update_actions = array(
            'activate_plugin' => sprintf(
                '<a href="%s" target="_parent">%s</a>',
                wp_nonce_url( 'plugins.php?action=activate&amp;plugin=' . urlencode( $this->plugin ), 'activate-plugin_' . $this->plugin ),
                __( 'Activate Plugin' )
            ),
            'plugins_page'    => sprintf(
                '<a href="%s" target="_parent">%s</a>',
                self_admin_url( 'plugins.php' ),
                __( 'Go to Plugins page' )
            ),

    public function before( $title = '' ) {
        parent::before( $this->theme_info->display( 'Name' ) );
    }

    /** * @param string $title */
    public function after( $title = '' ) {
        parent::after( $this->theme_info->display( 'Name' ) );
        $this->decrement_update_count( 'theme' );
    }

    /** */
    public function bulk_footer() {
        parent::bulk_footer();

        $update_actions = array(
            'themes_page'  => sprintf(
                '<a href="%s" target="_parent">%s</a>',
                self_admin_url( 'themes.php' ),
                
$this->theme = $args['theme'];

        parent::__construct( $args );
    }

    /** * Performs an action following a single theme update. * * @since 2.8.0 */
    public function after() {
        $this->decrement_update_count( 'theme' );

        $update_actions = array();
        $theme_info     = $this->upgrader->theme_info();
        if ( $theme_info ) {
            $name       = $theme_info->display( 'Name' );
            $stylesheet = $this->upgrader->result['destination_name'];
            $template   = $theme_info->get_template();

            $activate_link = add_query_arg(
                array(
                    'action'     => 'activate',
                    


    /** */
    public function after() {
        echo '</div>';
    }

    /** */
    public function bulk_footer() {
        $this->decrement_update_count( 'translation' );

        $update_actions = array(
            'updates_page' => sprintf(
                '<a href="%s" target="_parent">%s</a>',
                self_admin_url( 'update-core.php' ),
                __( 'Go to WordPress Updates page' )
            ),
        );

        /** * Filters the list of action links available following a translations update. * * @since 3.7.0 * * @param string[] $update_actions Array of translations update links. */
Home | Imprint | This part of the site doesn't use cookies.