• Resolved Kevin A. Wilson

    (@kwilson68)


    On the RSS Aggregator page https://kb.wprssaggregator.com/article/297-f2p-filter-modify-imported-posts-before-they-are-saved, the first line in the code is

    add_filter( 'wprss_ftp_post_args', 'my_custom_post_args', 10, 2 );

    This works fine for the second example, where the function takes two arguments. But the first example defines the function as taking three parameters:

    function my_custom_post_args( $post, $feed_source, $item )

    The add_filter code should therefore have a 3 at the end to indicate the correct number of arguments expected:

    add_filter( 'wprss_ftp_post_args', 'my_custom_post_args', 10, 3);

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • @kwilson68

    Thanks for the heads up.

    For discussions linked to our premium add-ons, please get in touch with us using our website’s support contact form. According to this forum’s guidelines, we are not allowed to discuss premium add-ons.

Viewing 1 replies (of 1 total)
  • The topic ‘Typo in example code’ is closed to new replies.