Welcome to WP Pixabay

This plugin help you search millions of free photos, vectors and art illustrations from https://pixabay.com then insert into content or set as featured image very quickly.

Step 1: Go to https://pixabay.com and create new account (verify via email required).

Step 2: Login with your account and go to https://pixabay.com/api/docs/#api_key then you can see the key.

">How to get Pixabay Username & Key?

">How to get Pixabay Username & Key?

/>

Check this option if you want use Pixabay for front-end editor.

Thank you for choosing WP Pixabay,
WPclever
Email: cleverwp@gmail.com
Website: https://wpclever.net Buy PRO version with only $15 (Paypal) at https://wpclever.net/downloads/wordpress-pixabay-search-and-insert
$vpxb_username, 'vpxb_key' => $vpxb_key, 'vpxb_ajax_url' => admin_url( 'admin-ajax.php' ), 'vpxb_nonce' => wp_create_nonce( 'vpxb_nonce' ) ) ); } add_action( 'admin_enqueue_scripts', 'vpxb_load_scripts' ); if ( get_option( 'vpxb_frontend', 0 ) == 1 ) { add_action( 'wp_enqueue_scripts', 'vpxb_load_scripts' ); } function vpxb_add_button( $editor_id ) { echo ' Pixabay '; } add_action( 'media_buttons', 'vpxb_add_button' ); function vpxb_save_postdata( $post_id, $post ) { if ( isset( $post->post_status ) && 'auto-draft' == $post->post_status ) { return; } if ( wp_is_post_revision( $post_id ) ) { return; } if ( ! empty( $_POST['vpxb_featured_url'] ) ) { if ( strstr( $_SERVER['REQUEST_URI'], 'wp-admin/post-new.php' ) || strstr( $_SERVER['REQUEST_URI'], 'wp-admin/post.php' ) ) { if ( 'page' == $_POST['post_type'] ) { if ( ! current_user_can( 'edit_page', $post_id ) ) { return; } } else { if ( ! current_user_can( 'edit_post', $post_id ) ) { return; } } $vpxb_furl = sanitize_text_field( $_POST['vpxb_featured_url'] ); vpxb_save_featured( $vpxb_furl ); } } } add_action( 'save_post', 'vpxb_save_postdata', 10, 3 ); function vpxb_save_to_media( $vurl, $vtitle, $vfilename, $vpid ) { $thumbid = 0; $filename = pathinfo( $vurl, PATHINFO_FILENAME ); if ( ( $vfilename == '1' ) && ( $vtitle != '' ) ) { $filename = sanitize_title( $vtitle ); } require_once( ABSPATH . 'wp-admin/includes/file.php' ); require_once( ABSPATH . 'wp-admin/includes/media.php' ); @set_time_limit( 300 ); if ( ! empty( $vurl ) ) { $tmp = download_url( $vurl ); $ext = pathinfo( $vurl, PATHINFO_EXTENSION ); $file_array['name'] = $filename . '.' . $ext; $file_array['tmp_name'] = $tmp; if ( is_wp_error( $tmp ) ) { @unlink( $file_array['tmp_name'] ); $file_array['tmp_name'] = ''; } $thumbid = media_handle_sideload( $file_array, $vpid, $desc = null ); if ( is_wp_error( $thumbid ) ) { @unlink( $file_array['tmp_name'] ); return $thumbid; } } echo wp_get_attachment_url( $thumbid ); } function vpxb_save_featured( $vurl ) { global $post; $filename = pathinfo( $vurl, PATHINFO_FILENAME ); require_once( ABSPATH . 'wp-admin/includes/file.php' ); require_once( ABSPATH . 'wp-admin/includes/media.php' ); @set_time_limit( 300 ); if ( ! empty( $vurl ) ) { $tmp = download_url( $vurl ); $ext = pathinfo( $vurl, PATHINFO_EXTENSION ); $file_array['name'] = $filename . '.' . $ext; $file_array['tmp_name'] = $tmp; if ( is_wp_error( $tmp ) ) { @unlink( $file_array['tmp_name'] ); $file_array['tmp_name'] = ''; } $thumbid = media_handle_sideload( $file_array, $post->ID, $desc = null ); if ( is_wp_error( $thumbid ) ) { @unlink( $file_array['tmp_name'] ); return $thumbid; } } set_post_thumbnail( $post, $thumbid ); } function vpxb_popup_content() { ?>
Title
Caption
File name
Size
Alignment
Link to
  Open new windows
  Rel nofollow