handle_plugin_status example

array( 'status' => 500 )
            );
        }

        if ( 'inactive' !== $request['status'] ) {
            $can_change_status = $this->plugin_status_permission_check( $file$request['status'], 'inactive' );

            if ( is_wp_error( $can_change_status ) ) {
                return $can_change_status;
            }

            $changed_status = $this->handle_plugin_status( $file$request['status'], 'inactive' );

            if ( is_wp_error( $changed_status ) ) {
                return $changed_status;
            }
        }

        // Install translations.         $installed_locales = array_values( get_available_languages() );
        /** This filter is documented in wp-includes/update.php */
        $installed_locales = apply_filters( 'plugins_update_check_locales', $installed_locales );

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