프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$plugin |
메소드 | 설명 | |
---|---|---|
__construct ( |
||
add_hooks ( ) | ||
form ( $args = [], string $content = '' ) : string | Renders the WP Docs search form | |
load_assets ( ) | Load script & styles required for WP Docs search | |
process_ajax_search ( ) | Process AJAX search requests, returns a JSON response. | |
process_non_ajax_search ( ) | Process regular (non-AJAX) search requests. | |
search ( string $original_term ) : array | Search through the Docs for a given term. |
메소드 | 설명 | |
---|---|---|
build_result_html ( string $term, array $results ) : string | Builds the HTML for the search results |
public process_ajax_search ( ) |
public process_non_ajax_search ( ) |