diff --git a/README.md b/README.md index 6188e22..9d3ac8c 100644 --- a/README.md +++ b/README.md @@ -33,11 +33,11 @@ $ composer install You'll also need to add the following to your functions.php file: ```php -require_once TEMPLATEPATH . '/image-processing-queue/vendor/a5hleyrich/wp-background-processing/classes/wp-async-request.php'; -require_once TEMPLATEPATH . '/image-processing-queue/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php'; -require_once TEMPLATEPATH . '/image-processing-queue/includes/class-ipq-process.php'; -require_once TEMPLATEPATH . '/image-processing-queue/includes/class-image-processing-queue.php'; -require_once TEMPLATEPATH . '/image-processing-queue/includes/ipq-template-functions.php'; +require_once get_stylesheet_directory() . '/image-processing-queue/vendor/a5hleyrich/wp-background-processing/classes/wp-async-request.php'; +require_once get_stylesheet_directory() . '/image-processing-queue/vendor/a5hleyrich/wp-background-processing/classes/wp-background-process.php'; +require_once get_stylesheet_directory() . '/image-processing-queue/includes/class-ipq-process.php'; +require_once get_stylesheet_directory() . '/image-processing-queue/includes/class-image-processing-queue.php'; +require_once get_stylesheet_directory() . '/image-processing-queue/includes/ipq-template-functions.php'; Image_Processing_Queue::instance(); @@ -61,4 +61,4 @@ echo ipq_get_theme_image( $post_id, array( ## License -[GPLv2+](http://www.gnu.org/licenses/gpl-2.0.html) \ No newline at end of file +[GPLv2+](http://www.gnu.org/licenses/gpl-2.0.html)