Switch language

wpseek.com
A WordPress-centric search engine for devs and theme authors




wp_ajax_wp_link_ajax [ WordPress Function ]

wp_ajax_wp_link_ajax ( No parameters )
Defined at:



No description yet.

Source


<?php
function wp_ajax_wp_link_ajax() {
    
check_ajax_referer'internal-linking''_ajax_linking_nonce' );

    
$args = array();

    if ( isset( 
$_POST['search'] ) )
        
$args['s'] = stripslashes$_POST['search'] );
    
$args['pagenum'] = ! empty( $_POST['page'] ) ? absint$_POST['page'] ) : 1;

    require(
ABSPATH WPINC '/class-wp-editor.php');
    
$results _WP_Editors::wp_link_query$args );

    if ( ! isset( 
$results ) )
        
wp_die);

    echo 
json_encode$results );
    echo 
"\n";

    
wp_die();
}
?>

Examples [ wp-snippets.com ]

Top Google zoekresultaten

Meer ...

Gebruikersdiscussies [ wordpress.org ]

0 User Note(s)

Nog geen één. Wees de eerste!

Nieuw toevoegen ...



HTML5 Powered with CSS3 / Styling, Performance & Integration, and Semantics