Plugin Directory

Changeset 2685042


Ignore:
Timestamp:
02/25/2022 03:26:04 PM (4 years ago)
Author:
iteras
Message:

Release 1.4.0

Location:
iteras/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • iteras/trunk/README.txt

    r2685036 r2685042  
    6767 * Override the decision to paywall the particular content
    6868 *
     69 * @param integer $post_paywall_ids The paywalls that give access to the post, if empty the post would not be paywalled be default
    6970 * @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 default
    7171 * @param boolean $user_authorized If the user has a valid iteraspass that has the appropriate access
    7272 * @param array $paywall_config Contains the Iteras plugin configuration
    7373 */
    74 function make_paywall_decision($post, $post_paywall_ids, $user_authorized, $paywall_config) {
     74function make_paywall_decision($post_paywall_ids, $post, $user_authorized, $paywall_config) {
    7575  // example of generated share token
    7676  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  
    404404
    405405    // apply filter that allows forcing the paywall of the content
    406     $force_paywall_content = apply_filters('iteras_override_content_paywall', $post, $paywall_ids, $user_authorized, $this->settings);
     406    $force_paywall_content = apply_filters('iteras_override_content_paywall', $paywall_ids, $post, $user_authorized, $this->settings);
    407407    if (isset($force_paywall_content)) {
    408408      if ($force_paywall_content == false) {
Note: See TracChangeset for help on using the changeset viewer.