• Resolved alexzaragoza21

    (@alexzaragoza21)


    Hello Support Team,

    Your plugin is really awesome! I really love it.

    However, is there a way to set a custom views? or multiply the number of views per visit of a user?

    Hope, there is a way. I really need it.

    Thank you so much. Looking forward to hearing from you.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Hector Cabrera

    (@hcabrera)

    Hi @alexzaragoza21,

    Unfortunately, out of the box the plugin doesn’t provide a function to do something like this.

    I guess you could try hooking into the wpp_post_update_views action hook and perform your views count “multiplication” there (see Actions for more details.) You’ll need to write all of the logic for this on your own though, having a look at the code WPP uses internally for this might get you on the right track: update_views_count().

    Thread Starter alexzaragoza21

    (@alexzaragoza21)

    Hello Hector,

    Oh I see. Desperately needed this.

    I saw this one–> https://www.ads-software.com/support/topic/increase-the-number-of-post-views-2/

    is this still working?

    I’m sorry I’m a newbie here. Don’t have that wide knowledge in coding. Hope you can understand ??

    Plugin Author Hector Cabrera

    (@hcabrera)

    Yep, that should work although I don’t really recommend that method: future updates of the plugin will automatically overwrite any changes made to the code, hence why I recommend using the action hook instead. (Actually, if you re-read that thread you’ll notice that the user had that exact problem and came back 8 months later to ask how to fix it.)

    It’s your call in the end though. If you decide going that route make sure to remember to redo any code changes on every plugin update.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Custom Number of views or Multiply number of views per visit’ is closed to new replies.