Changeset 2685042
- Timestamp:
- 02/25/2022 03:26:04 PM (4 years ago)
- Location:
- iteras/trunk
- Files:
-
- 2 edited
-
README.txt (modified) (1 diff)
-
public/iteras-public.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
iteras/trunk/README.txt
r2685036 r2685042 67 67 * Override the decision to paywall the particular content 68 68 * 69 * @param integer $post_paywall_ids The paywalls that give access to the post, if empty the post would not be paywalled be default 69 70 * @param object $post Reference to the post being potentially paywalled 70 * @param integer $post_paywall_id The paywalls that give access to the post, if empty the post would not be paywalled be default71 71 * @param boolean $user_authorized If the user has a valid iteraspass that has the appropriate access 72 72 * @param array $paywall_config Contains the Iteras plugin configuration 73 73 */ 74 function make_paywall_decision($post , $post_paywall_ids, $user_authorized, $paywall_config) {74 function make_paywall_decision($post_paywall_ids, $post, $user_authorized, $paywall_config) { 75 75 // example of generated share token 76 76 error_log(openssl_encrypt(json_encode(array('shared_by'=>"John Doe", 'post_id' => $post->ID)), "aes-128-cbc", "somesecret")); -
iteras/trunk/public/iteras-public.php
r2685036 r2685042 404 404 405 405 // apply filter that allows forcing the paywall of the content 406 $force_paywall_content = apply_filters('iteras_override_content_paywall', $p ost, $paywall_ids, $user_authorized, $this->settings);406 $force_paywall_content = apply_filters('iteras_override_content_paywall', $paywall_ids, $post, $user_authorized, $this->settings); 407 407 if (isset($force_paywall_content)) { 408 408 if ($force_paywall_content == false) {
Note: See TracChangeset
for help on using the changeset viewer.