Inspired by the new CC Search tool https://search.creativecommons.org/ I decided to try and make a WordPress plugin based on it. The goal was to have an image search functionality from CC licensed images into the post editor.
Test site
You can test the resulting plugin functionality at http://users.sch.gr/stergatu/wordpress/ by login as testuser, testuser and let me know what you think of it.
Plugin source
You can find the code, contribute and report bugs at https://github.com/lenasterg/wp_ccsearch
What the plugin does:
WP CCSearch helps you search millions of free photos using the CCsearch API (https://api.creativecommons.engineering/#tag/image) then insert the original image into content or set as featured image very quickly. The plugin is inspired and based on the https://ccsearch.creativecommons.org/ and it wouldnt’t be possible without the Creative Commons Catalog API https://api.creativecommons.engineering/
After the plugin’s activation, you can see the “Image via CCSearch” button above the editor and as option into the “Add Media” pop-up window. By pressing it you can search using Latin characters for an image, browse the returned images, preview an image and its license and adjuct the image settings:
- use of thumbnail or original image,
- set the image link (if any).
- Insert the image into the post or as featured image.
Screenshots:
You can try the plugin and let me know what you think of it.
