Making message read-only


Home Forums Front End PM PRO Making message read-only

This topic is: Resolved
Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #11107
    Alex Brearley
    Participant

    Made those changes – no change. The php error is specifically on line 75 where the function is called by the hook – still thinks there should be 1 not 3. I tried:

    public function cmdu_read_only_message($can)
    //public function cmdu_read_only_message($can, $cap, $id)

    {
    print_r($can);
    die();

    And the result was 1

    #11110
    Alex Brearley
    Participant

    Should add this error occurs on every page load of the website – not when specifically using FEP

    #11113
    Shamim Hasan
    Keymaster

    Please add those code directly to your theme’s (child theme’s if any) functions.php and see how many arguments you received.

    Let me know.

    #11122
    Alex Brearley
    Participant

    Worked in child theme. Turned out to be a typo in my wp_add_filter function that meant the num of args was not being passed – doh!

    #11237
    Alex Brearley
    Participant

    So I’ve tested this out and not quite what I wanted. If I attempt to view the first (parent) message, I get an error saying I do not have permission to view the message – what I wanted was to be able to view the message but not reply (read-only). Also, it has no affect on the children of the first message/post i.e. if I click on a reply message, I can view and reply again.

    #11250
    Shamim Hasan
    Keymaster

    did you add full code? Please give me code what you have added.

    #11255
    Alex Brearley
    Participant

    I can see what the issue is, should be if ( (‘send_reply’ === $cap) and not if ( (‘send_reply’ !== $cap)

    I have also used wp_get_post_parent_id to get parent ID’s of reply messages to check those as well

Viewing 7 posts - 16 through 22 (of 22 total)

You need to purchase ‘Front End PM PRO’ to create topic in this support forum.

If you already purchased ‘Front End PM PRO’ please LOGIN.