Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 59525

Third param apply_filters error

$
0
0

Replies: 0

Hello,

We have noticed an anomaly in your plugin which modifies the values of WordPress hooks.

In fact, in some apply_filters placed in views, you modify the return values.

Example: /wp-nested-pages/app/Views/partials/row.php:267
apply_filters (‘page_link’, $link, $this->post)

The last parameter is not a WP_Post but a post_id in the WordPress hook

  • This topic was modified 8 minutes ago by asadowski10.

Viewing all articles
Browse latest Browse all 59525

Trending Articles