{"id":344,"date":"2020-03-12T08:14:41","date_gmt":"2020-03-12T08:14:41","guid":{"rendered":"https:\/\/stockpack.co\/blog\/?page_id=344"},"modified":"2020-10-05T09:09:06","modified_gmt":"2020-10-05T09:09:06","slug":"documentation","status":"publish","type":"page","link":"https:\/\/stockpack.co\/blog\/documentation\/","title":{"rendered":"Documentation"},"content":{"rendered":"\n<p>This page gathers all the resources from the website to facilitate easy access to StockPack documentation articles. <\/p>\n\n\n\n\n\n<h2 class=\"wp-block-heading\">Filters<\/h2>\n\n\n\n<p>StockPack has a number of filters you can use to tailor the plugin to your needs. If you are looking to get a filter for a specific need please contact us via <a href=\"https:\/\/stockpack.co\/contact\">https:\/\/stockpack.co\/contact<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Caption filter &#8211; stockpack_caption<\/h3>\n\n\n\n<p>The <code>stockpack_caption<\/code> can be used to filter how the caption is displayed. You can find examples <a href=\"https:\/\/stockpack.co\/blog\/changing-the-automated-captions\/\">here<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Providers filter &#8211; stockpack_providers<\/h3>\n\n\n\n<p>The <code>stockpack_providers<\/code> is useful when you want to limit the providers available in WordPress. Our list of providers is growing so you might want to have fewer options. You can find examples <a href=\"https:\/\/stockpack.co\/blog\/how-to-filter-the-visible-stock-image-providers-select\/\">here<\/a>. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Capability filter &#8211; stockpack_settings_capability<\/h3>\n\n\n\n<p>The <code>stockpack_settings_capability<\/code> allows hiding the settings page for users who wouldn&#8217;t need to edit it. You can find examples <a href=\"https:\/\/stockpack.co\/blog\/stockpack-settings-capability-filter\/\">here<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Load Filter &#8211; stockpack_load<\/h3>\n\n\n\n<p>The <code>stockpack_load<\/code> filter allows you to disable the plugin from loading on pages where you do not want it to be loaded. You can find examples <a href=\"https:\/\/stockpack.co\/blog\/stop-stockpack-from-loading-with-stockpack-load-filter\/\">here<\/a>. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">License autocomplete filter &#8211; stockpack_autocomplete_licenses<\/h3>\n\n\n\n<p>The  <code>stockpack_autocomplete_licenses<\/code> filter allows you to add options to the licenses that get autocompleted when displaying the image attribution via caption. You can read more about <a href=\"https:\/\/stockpack.co\/blog\/how-to-provide-image-credit-in-wordpress\/\">providing attribution to all images in WordPress here<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Generated caption filter &#8211; stockpack_generated_caption<\/h3>\n\n\n\n<p>You can also change the generated caption when providing attribution. This is different from the caption initially set when downloading an image. Read more about <a href=\"https:\/\/stockpack.co\/blog\/how-to-provide-image-credit-in-wordpress\/\">providing attribution to all images in WordPress here<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Frontend Load Filter &#8211; frontend_load_stockpack<\/h3>\n\n\n\n<p>The <code>frontend_load_stockpack<\/code> filter allows you to disable the plugin from loading. It is very similar to the <code>stockpack_load<\/code> filter, but its currently being used to enable the plugin for frontend plugin builders. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">CLI Load Filter &#8211; cli_load_stockpack<\/h3>\n\n\n\n<p>The <code>cli_load_stockpack<\/code> filter allows you to disable the plugin from loading. Similar to other loading filters, but this is designed for checking if the plugin is being called via the CLI. <\/p>\n\n\n\n<p>You can use the CLI to update the token for the StockPack plugin. Here&#8217;s how you run it:<\/p>\n\n\n\n<p><code>wp stockpack update_token your-token-here<\/code><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Resources<\/h2>\n\n\n\n<p>This section covers some resources that can help you find more information about the plugin. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">How to use the plugin<\/h3>\n\n\n\n<p>The StockPack plugin is meant to be very simple. To search and download images you just need to install and activate the <a href=\"https:\/\/wordpress.org\/plugins\/stockpack\/\">StockPack plugin<\/a>. <\/p>\n\n\n\n<p>Then go to a post and try to insert an image. You should see a new Tab in the media Library named StockPack. Click on that and you will get a page where you can type in the search box to find images you can download. Read more in <a href=\"https:\/\/stockpack.co\/about\">How to search for Stock Images in WordPress via StockPack<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Search by id<\/h3>\n\n\n\n<p>StockPack supports searching stock photos by id. To do so just paste the id in the search box. You can find out more <a href=\"https:\/\/stockpack.co\/blog\/how-to-search-by-id-in-stockpack\/\">here<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Requests<\/h3>\n\n\n\n<p>To learn about what is a request and how they are counted you can read more <a href=\"https:\/\/stockpack.co\/blog\/how-are-requests-counted\/\">here<\/a>. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Providers supported<\/h3>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/plugins\/stockpack\/\">StockPack<\/a> supports <a href=\"https:\/\/stockpack.co\/blog\/how-to-connect-adobe-stock-to-wordpress-in-3-steps\/\">Unsplash<\/a>, <a href=\"https:\/\/stockpack.co\/blog\/how-to-connect-adobe-stock-to-wordpress-in-3-steps\/\">Adobe Stock<\/a>, <a href=\"https:\/\/stockpack.co\/blog\/how-to-connect-pixabay-to-wordpress-in-2-steps\/\">Pixabay<\/a>, <a href=\"https:\/\/stockpack.co\/blog\/how-to-connect-deposit-photos-to-wordpress-in-3-steps\/\">Deposit Photos<\/a>, <a href=\"https:\/\/stockpack.co\/blog\/how-to-connect-getty-images-to-wordpress-in-3-steps\/\">Getty Images<\/a>, <a href=\"https:\/\/stockpack.co\/blog\/how-to-connect-istock-to-wordpress-in-3-steps\/\">iStock<\/a> and <a href=\"https:\/\/stockpack.co\/blog\/how-to-connect-pexels-to-wordpress-in-2-steps\/\">Pexels<\/a>. We are currently adding Shutterstock. You can read an in-depth overview <a href=\"https:\/\/stockpack.co\/blog\/all-in-one-stock-image-search-unsplash-adobe-stock-pixabay-and-deposit-photos-are-now-in-wordpress\/\">here<\/a>.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Adobe Stock<\/h4>\n\n\n\n<p><a href=\"https:\/\/wordpress.org\/plugins\/stockpack\/\">StockPack<\/a> supports <a href=\"https:\/\/stockpack.co\/recommended\/adobe_stock\">Adobe Stock<\/a> for searching and downloading images in WordPress.<a href=\"https:\/\/stockpack.co\/blog\/how-to-connect-adobe-stock-to-wordpress-in-3-steps\/\"> Guide to integrate Adobe Stock in WordPress<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Unsplash <\/h4>\n\n\n\n<p>You can use <a href=\"https:\/\/wordpress.org\/plugins\/stockpack\/\">StockPack<\/a> for searching and downloading images from <a href=\"https:\/\/stockpack.co\/recommended\/unsplash\">Unsplash<\/a> in WordPress. <a href=\"https:\/\/stockpack.co\/blog\/how-to-connect-unsplash-to-wordpress-in-2-steps\/\">Guide to integrate Unsplash in WordPress<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Pixabay<\/h4>\n\n\n\n<p><a href=\"https:\/\/stockpack.co\/recommended\/pixabay\">Pixabay<\/a> images are available for searching and downloading in WordPress via <a href=\"https:\/\/wordpress.org\/plugins\/stockpack\/\">StockPack<\/a>. <a href=\"https:\/\/stockpack.co\/blog\/how-to-connect-pixabay-to-wordpress-in-2-steps\/\">Guide to integrate Pixabay in WordPress <\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Deposit Photos<\/h4>\n\n\n\n<p>Use <a href=\"https:\/\/wordpress.org\/plugins\/stockpack\/\">StockPack<\/a> for searching and downloading images from Deposit Photos in WordPress. <a href=\"https:\/\/stockpack.co\/blog\/how-to-connect-deposit-photos-to-wordpress-in-3-steps\/\">Guide to integrate Deposit Photos in WordPress<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Getty images<\/h4>\n\n\n\n<p><a href=\"https:\/\/stockpack.co\/recommended\/getty_images\">Getty Images<\/a> can be searched and downloaded in <a href=\"https:\/\/wordpress.org\/plugins\/stockpack\/\">WordPress<\/a> via the <a href=\"https:\/\/wordpress.org\/plugins\/stockpack\/\">StockPack<\/a> plugin. <a href=\"https:\/\/stockpack.co\/blog\/how-to-connect-getty-images-to-wordpress-in-3-steps\/\">Guide to integrate Getty Images in WordPress<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">iStock<\/h4>\n\n\n\n<p><a href=\"https:\/\/stockpack.co\/recommended\/istock\">iStock<\/a> is supported by <a href=\"https:\/\/wordpress.org\/plugins\/stockpack\/\">StockPack<\/a> for searching and downloading images in WordPress. <a href=\"https:\/\/stockpack.co\/blog\/how-to-connect-istock-to-wordpress-in-3-steps\/\">Guide to integrate iStock in WordPress<\/a><\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Pexels<\/h4>\n\n\n\n<p>StockPack supports <a href=\"https:\/\/stockpack.co\/blog\/how-to-connect-pexels-to-wordpress-in-2-steps\/\">Pexels<\/a> for searching and downloading images in WordPress. <a href=\"https:\/\/stockpack.co\/blog\/how-to-connect-pexels-to-wordpress-in-2-steps\/\">Guide to integrate Pexels in WordPress<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Elementor, Gutenberg, Divi and Visual Composer<\/h3>\n\n\n\n<p>The StockPack WordPress plugin has support for Elementor as well as Visual Composer, Divi and Gutenberg. You can find a <a href=\"https:\/\/stockpack.co\/blog\/add-stock-images-in-elementor\/\">guide<\/a> about using it via Elementor here. We also support the Oxygen page builder plugin. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Troubleshooting<\/h2>\n\n\n\n<p>Here you can find more information if you are having issues with the plugin. The stockpack documentation is being updated based on support cases. If you are not able to find the fix quickly, please <a href=\"https:\/\/stockpack.co\/contact\">contact StockPack support<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">StockPack tab not showing up<\/h3>\n\n\n\n<p>If you can&#8217;t find the StockPack tab, there might be another plugin that conflicts with it, or there may be an issue on your server. Currently, we found cases where the users were looking on the Media Library page, and not trying on the posts Media Library <strong>Popup<\/strong>. <\/p>\n\n\n\n<p>In case this is not the same issue you are experiencing try this <a href=\"https:\/\/stockpack.co\/blog\/what-to-do-if-stockpack-tab-is-not-showing-up\/\">post<\/a>.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Upload throws an error<\/h3>\n\n\n\n<p>In very rare cases we found some hostings not allowing the download of assets to go through due to <a href=\"https:\/\/modsecurity.org\/\">ModSecurity<\/a> . If you are getting an error regarding upload please <a href=\"https:\/\/stockpack.co\/contact\">contact us<\/a> so we can have a look and help you discuss it with hosting. <\/p>\n\n\n\n<p>The stockpack documentation is work in progress. Make sure to <a href=\"https:\/\/stockpack.co\/contact\">contact us<\/a> if you think something is missing, or you are having issues. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>This page gathers all the resources from the website to facilitate easy access to StockPack documentation articles. Filters StockPack has a number of filters you can use to tailor the plugin to your needs. If you are looking to get a filter for a specific need please contact us via https:\/\/stockpack.co\/contact Caption filter &#8211; stockpack_caption &#8230; <a title=\"Documentation\" class=\"read-more\" href=\"https:\/\/stockpack.co\/blog\/documentation\/\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-344","page","type-page","status-publish"],"_links":{"self":[{"href":"https:\/\/stockpack.co\/blog\/wp-json\/wp\/v2\/pages\/344","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stockpack.co\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/stockpack.co\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/stockpack.co\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/stockpack.co\/blog\/wp-json\/wp\/v2\/comments?post=344"}],"version-history":[{"count":13,"href":"https:\/\/stockpack.co\/blog\/wp-json\/wp\/v2\/pages\/344\/revisions"}],"predecessor-version":[{"id":570,"href":"https:\/\/stockpack.co\/blog\/wp-json\/wp\/v2\/pages\/344\/revisions\/570"}],"wp:attachment":[{"href":"https:\/\/stockpack.co\/blog\/wp-json\/wp\/v2\/media?parent=344"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}