/** * Meta API: WP_Metadata_Lazyloader class * * @package WordPress * @subpackage Meta * @since 4.5.0 */ /** * Core class used for lazy-loading object metadata. * * When loading many objects of a given type, such as posts in a WP_Query loop, it often makes * sense to prime various metadata caches at the beginning of the loop. This means fetching all * relevant metadata with a single database query, a technique that has the potential to improve * performance dramatically in some cases. * * In cases where the given metadata may not even be used in the loop, we can improve performance * even more by only priming the metadata cache for affected items the first time a piece of metadata * is requested - ie, by lazy-loading it. So, for example, comment meta may not be loaded into the * cache in the comments section of a post until the first time get_comment_meta() is called in the * context of the comment loop. * * WP uses the WP_Metadata_Lazyloader class to queue objects for metadata cache priming. The class * then detects the relevant get_*_meta() function call, and queries the metadata of all queued objects. * * Do not access this class directly. Use the wp_metadata_lazyloader() function. * * @since 4.5.0 */ #[AllowDynamicProperties] class WP_Metadata_Lazyloader { /** * Pending objects queue. * * @since 4.5.0 * @var array */ protected $pending_objects; /** * Settings for supported object types. * * @since 4.5.0 * @var array */ protected $settings = array(); /** * Constructor. * * @since 4.5.0 */ public function __construct() { $this->settings = array( 'term' => array( 'filter' => 'get_term_metadata', 'callback' => array( $this, 'lazyload_meta_callback' ), ), 'comment' => array( 'filter' => 'get_comment_metadata', 'callback' => array( $this, 'lazyload_meta_callback' ), ), 'blog' => array( 'filter' => 'get_blog_metadata', 'callback' => array( $this, 'lazyload_meta_callback' ), ), ); } /** * Adds objects to the metadata lazy-load queue. * * @since 4.5.0 * * @param string $object_type Type of object whose meta is to be lazy-loaded. Accepts 'term' or 'comment'. * @param array $object_ids Array of object IDs. * @return void|WP_Error WP_Error on failure. */ public function queue_objects( $object_type, $object_ids ) { if ( ! isset( $this->settings[ $object_type ] ) ) { return new WP_Error( 'invalid_object_type', __( 'Invalid object type.' ) ); } $type_settings = $this->settings[ $object_type ]; if ( ! isset( $this->pending_objects[ $object_type ] ) ) { $this->pending_objects[ $object_type ] = array(); } foreach ( $object_ids as $object_id ) { // Keyed by ID for faster lookup. if ( ! isset( $this->pending_objects[ $object_type ][ $object_id ] ) ) { $this->pending_objects[ $object_type ][ $object_id ] = 1; } } add_filter( $type_settings['filter'], $type_settings['callback'], 10, 5 ); /** * Fires after objects are added to the metadata lazy-load queue. * * @since 4.5.0 * * @param array $object_ids Array of object IDs. * @param string $object_type Type of object being queued. * @param WP_Metadata_Lazyloader $lazyloader The lazy-loader object. */ do_action( 'metadata_lazyloader_queued_objects', $object_ids, $object_type, $this ); } /** * Resets lazy-load queue for a given object type. * * @since 4.5.0 * * @param string $object_type Object type. Accepts 'comment' or 'term'. * @return void|WP_Error WP_Error on failure. */ public function reset_queue( $object_type ) { if ( ! isset( $this->settings[ $object_type ] ) ) { return new WP_Error( 'invalid_object_type', __( 'Invalid object type.' ) ); } $type_settings = $this->settings[ $object_type ]; $this->pending_objects[ $object_type ] = array(); remove_filter( $type_settings['filter'], $type_settings['callback'] ); } /** * Lazy-loads term meta for queued terms. * * This method is public so that it can be used as a filter callback. As a rule, there * is no need to invoke it directly. * * @since 4.5.0 * @deprecated 6.3.0 Use WP_Metadata_Lazyloader::lazyload_meta_callback() instead. * * @param mixed $check The `$check` param passed from the 'get_term_metadata' hook. * @return mixed In order not to short-circuit `get_metadata()`. Generally, this is `null`, but it could be * another value if filtered by a plugin. */ public function lazyload_term_meta( $check ) { _deprecated_function( __METHOD__, '6.3.0', 'WP_Metadata_Lazyloader::lazyload_meta_callback' ); return $this->lazyload_meta_callback( $check, 0, '', false, 'term' ); } /** * Lazy-loads comment meta for queued comments. * * This method is public so that it can be used as a filter callback. As a rule, there is no need to invoke it * directly, from either inside or outside the `WP_Query` object. * * @since 4.5.0 * @deprecated 6.3.0 Use WP_Metadata_Lazyloader::lazyload_meta_callback() instead. * * @param mixed $check The `$check` param passed from the {@see 'get_comment_metadata'} hook. * @return mixed The original value of `$check`, so as not to short-circuit `get_comment_metadata()`. */ public function lazyload_comment_meta( $check ) { _deprecated_function( __METHOD__, '6.3.0', 'WP_Metadata_Lazyloader::lazyload_meta_callback' ); return $this->lazyload_meta_callback( $check, 0, '', false, 'comment' ); } /** * Lazy-loads meta for queued objects. * * This method is public so that it can be used as a filter callback. As a rule, there * is no need to invoke it directly. * * @since 6.3.0 * * @param mixed $check The `$check` param passed from the 'get_*_metadata' hook. * @param int $object_id ID of the object metadata is for. * @param string $meta_key Unused. * @param bool $single Unused. * @param string $meta_type Type of object metadata is for. Accepts 'post', 'comment', 'term', 'user', * or any other object type with an associated meta table. * @return mixed In order not to short-circuit `get_metadata()`. Generally, this is `null`, but it could be * another value if filtered by a plugin. */ public function lazyload_meta_callback( $check, $object_id, $meta_key, $single, $meta_type ) { if ( empty( $this->pending_objects[ $meta_type ] ) ) { return $check; } $object_ids = array_keys( $this->pending_objects[ $meta_type ] ); if ( $object_id && ! in_array( $object_id, $object_ids, true ) ) { $object_ids[] = $object_id; } update_meta_cache( $meta_type, $object_ids ); // No need to run again for this set of objects. $this->reset_queue( $meta_type ); return $check; } } Terms – Original Union Printer Skip to content

Terms

Terms and Conditions

Welcome to OriginalUnionPrinter.com. Please review the Terms and Conditions each time you use Original Union Printer, as the content may change periodically. These Terms and Conditions govern your use of OriginalUnionPrinter.com.

If you are not satisfied with your purchase, please contact our Customer Service Team by phone at 248.581.4880 or e-mail at info@theoriginalprintshoppe.com within 15 days from the date you receive your product(s) and Original Union Printer will promptly respond to you. Requests for refunds or reprinting will be considered on a case-by-case basis. In the event MoreWithPrint offers to refund or reprint, associated processing costs including (but not limited to) shipping and postage are not included.

Depending on the circumstance, the quality of your product is not in our full control and so in certain cases our refund policy may not apply. The following are examples of circumstances that MoreWithPrint is not responsible for:

  • Spelling, punctuation, or grammatical errors made by the customer
  • Poor quality and or low-resolution of uploaded images and graphics
  • Design errors made by customer when using the online design tool
  • Color selection errors made by customer when using the online design tool
  • Order selection errors in customer-selected options (these include but not limited to) product type, size, paper weight and color selection, finishing options, order quantity or file submission not executed according to specifications
  • Damage to the product(s) that occurs after delivery to the customer
  • Duplicate orders made by the customer
  • Incorrect file layout for folding, scoring, die cutting
  • Shipping address errors created by the customer

Artwork Files

Customers are 100% responsible for the accuracy of their print-ready artwork files. Graphic Design Setup

Uploading Artwork Files

You certify that you have the right to use the image(s) in your artwork files and under MoreWIthPrint’s Terms and Conditions, you agree that you will not upload any artwork files consisting of the following material:

Artwork material(s) that could lead to civil or criminal liability under applicable law and/or Artwork material(s) that could infringe rights of privacy, publicity, copyrights or other intellectual property rights without the permission of the owner of these rights and the persons who are shown or represented in the material

Payment and Payment Methods

Prices and amounts shown on this Site are in U.S. Dollars (USD)

Once a print order has been approved by the customer and “sent to press” on the Site, no changes are allowed to the artwork files, job characteristics, or printing turnaround time.

After a print job has been sent to MoreWithPrint’s prepress department, the customer is responsible for paying the entire amount of that print job along with applicable taxes, shipping, and processing fees, unless otherwise noted.

Approved Payment Methods Include:

Payment by credit card or pay on account. Pay on account or purchase orders are available only to pre-approved customers. Please call our Customer Service Team at 248.581.4880 or e-mail at info@theoriginalprintshoppe.com for details regrading Pay On Account applications

Sales Tax

MoreWithPrint collects sales tax on purchases shipped to any state(s) where sales tax is applicable. Sales Tax will be calculated based on the printing and finishing product subtotal.

Tax-Exempt Status

If tax was charged on your order and you would like to claim tax-exempt status, you can request an adjustment for the amount of sales tax charged by sending in documentation of your tax-exempt status. Before or after placing your order through the Site, please fax a copy of your tax-exempt certificate along with your order number to the attention of the Credit Team at support@morewithprint.com.

Printing Turnaround Time

Printing turnaround time begins once your order has been placed and your print-ready files have been uploaded to your account, attached to your printing job, and approved for printing. Files must be approved before noon. 

Shipping

All shipping is done by the United Parcel Service (UPS) and the United States Postal Service (USPS). MoreWithPrint assumes no responsibility for delays caused by shipping carrier

MoreWithPrint does not refund for shipping claims

General Terms and Conditions

Copyright Notice

You, the User, acknowledge that all content included on this Site, including, without limitation, the information, data, software, photographs, graphs, typefaces, graphics, images, illustrations, maps, designs, icons, written and other material and compilations (collectively, “Content”) are intellectual property and copyrighted works of MoreWithPrint and/or various third-party providers (“Providers”). Reproductions or storage of Content retrieved from this Site, in all forms, media and technologies now existing or hereafter developed, is subject to the U.S. Copyright Act of 1976, Title 17 of the United States Code.

Corporate Identification and Trademarks

“MoreWithPrint”, “MoreWithPrint.Com”, and any and all other marks appearing on this Site are trademarks of MoreWithPrint in the United States and other jurisdictions (“Trademarks”). You may not use, copy, reproduce, republish, upload, post, transmit distribute or modify the Trademarks in any way, including in advertising or publicity pertaining to distribution of materials on this Site, without MoreWithPrint’s prior written consent. The use of Trademarks on any other Web site or network computer environment is prohibited. MoreWithPrint prohibits the use of Trademarks as a “hot” link on, or to, any other Web site unless establishment of such a link is pre-approved by MoreWithPrint in writing.

User Restriction – Minors

We do not knowingly allow any users under the age of eighteen (18) to use or otherwise access the services of the Site. If you are under 18 years old, you may not use the Site. If you have reason to believe that a child under 18 years of age has provided us with information, please contact us at legal.morewithprint.com

It is a violation of law to place a Request in a false name or with an invalid credit card. Fraudulent users may be prosecuted to the fullest extent of the law.

Permission is granted to electronically copy and print in hard-copy portions of this Site for the sole purpose of using this Site as a shopping resource. Any other use of materials or Content on this Site, including reproduction for a purpose other than that noted above without MoreWithPrint’s prior written consent is prohibited.

Email

You are responsible for whatever material you submit and that you, not MoreWithPrint, have full responsibility for any message that you send, including its reliability, originality and copyright. Any, and all, rights to materials and ideas submitted to us become the exclusive property of MoreWithPrint.

Privacy

You confirm that you have read, understood and agree to the MoreWithPrint Privacy Policy, the terms of which are incorporated herein, and agree that the terms of such policy are reasonable and satisfactory to you. You consent to the use of your personal information by MoreWithPrint, its third-party providers, and/or distributors in accordance with the terms of and for the purposes set forth in the MoreWithPrint Privacy Policy. If you are not a resident of the United States, please note that the personal information you submit to the Site will be transferred to the United States and processed by MoreWithPrint in order to provide this Site and its services to you, or for such other purposes (as set forth in the Privacy Policy).

Indemnification

 

Third Parties

User Comments, Feedback and Other Submissions

All comments, feedback, suggestions and ideas disclosed, submitted or offered to a Covered Party in connection with your use of this Site (collectively, “Comments”), shall become and remain the exclusive property of MoreWithPrint. You agree you will be solely responsible for the content of any Comments you make.

Termination of Usage

User access to all or part of this Site may be terminated or suspended at any time, without notice and for any reason.

Governing Law

The internal laws of the State of New York shall govern the performance of these Terms and Conditions, without regard to such state’s conflicts of laws principles.

You consent to the exclusive jurisdiction and venue of the courts located in Syracuse, New York for all disputes arising out of, or relating to, the Terms and Conditions and use of this Site.