bbp_get_admin_repair_tool_run_url( string $component = array() )

Return the URL to run a specific repair tool


Description Description


Parameters Parameters

$component

(Optional)

Default value: array()


Top ↑

Source Source

File: includes/admin/tools/common.php

	function bbp_get_admin_repair_tool_run_url( $component = array() ) {

		// Page
		$page = ( 'repair' === $component['type'] )
			? 'bbp-repair'
			: 'bbp-upgrade';

		// Arguments
		$args = array(
			'page'    => $page,
			'action'  => 'run',
			'checked' => array( $component['id'] )
		);

		// Url
		$nonced = wp_nonce_url( bbp_get_admin_repair_tool_page_url( $args ), 'bbpress-do-counts' );

		// Filter & return
		return apply_filters( 'bbp_get_admin_repair_tool_run_url', $nonced, $component );
	}

Top ↑

Changelog Changelog

Changelog
Version Description
2.6.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.