PMC Plugins
Pmc Geo Restricted Content

pmc-geo-restricted-content


This plugin functionality

  • Add the new post option(Restrict from UK): to mark post as geo restricted. If Restrict post in UK option is checked for post then post will be blocked in UK. When content is blocked, instead sends an HTTP/451 header and show an error page with warning.
  • Add option to block images from feed: to prevent images syndicate from feed.
  • Add options to restrict image type: site restricted image:: Image is only for current site, this image can not use in other sites. single use image:: Image can use only for single post.

Meta Data

  • _pmc_restricted_image_type: Stores type of image restriction. (none, site_restricted OR single_use)
  • _pmc_restricted_image_in_feeds: To stores whether image is allowed in feed or not. (yes OR no)
  • _restricted_single_use_image_used: Stores ID of post where current single Use Attachment is used.
    • get_post_meta( $attachment_ID, '_restricted_single_use_image_used', true );
  • _restricted_single_use_image_used_post: Stores Array of single used images IDs for current post.
    • get_post_meta( $post_ID, '_restricted_single_use_image_used_post', true );
  • _pmc_restricted_image_not_allowed_in_feeds: Stores Array of not allowed in feed images IDs for current post.
    • add_post_meta( $post->ID, '_pmc_restricted_image_not_allowed_in_feeds', [
      	$attachments[1],
      	$attachments[2],
      	$attachments[4]
      ] );