Title: [Plugin: CDN Sync Tool] Custom hook
Last modified: August 19, 2016

---

# [Plugin: CDN Sync Tool] Custom hook

 *  [artesea](https://wordpress.org/support/users/artesea/)
 * (@artesea)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-custom-hook/)
 * I’ve got custom plugin used to upload author images on a multi author blog. They
   are placed in /wp-content/authors/, at the moment I need to manually sync the
   folder each time a new author is added.
    Is there a hook I can add to the custom
   plugin to start the sync process / just upload the one image to AWS?

Viewing 1 replies (of 1 total)

 *  Plugin Contributor [Backie](https://wordpress.org/support/users/backie/)
 * (@backie)
 * [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-custom-hook/#post-1944343)
 * Well it’s very simple to leverage the plugin to upload to the desired CDN using
   this plugin. I’ve incuded the php doc comments for the class+method for uploading
   files.
 *     ```
       /**
         * Starts the upload process for the file.
         *
         * @param string $file The location of the file. If not from the media library, it should be an absolute path.
         * @param boolean $media if true then modifies the file string to add the upload directory before the filename. Otherwise leaves it alone.
         */
       Cst_Sync::process($file,$media);
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: CDN Sync Tool] Custom hook’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cdn-sync-tool.svg)
 * [CDN Sync Tool](https://wordpress.org/plugins/cdn-sync-tool/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cdn-sync-tool/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cdn-sync-tool/)
 * [Active Topics](https://wordpress.org/support/plugin/cdn-sync-tool/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cdn-sync-tool/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cdn-sync-tool/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Backie](https://wordpress.org/support/users/backie/)
 * Last activity: [15 years, 3 months ago](https://wordpress.org/support/topic/plugin-cdn-sync-tool-custom-hook/#post-1944343)
 * Status: not resolved