Typo in example code
-
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]
- The topic ‘Typo in example code’ is closed to new replies.