Skip to content

Commit

Permalink
add filter for hierarchical post types as well
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwardBock committed Jun 3, 2024
1 parent 01b5ff1 commit e1c95fe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct() {
add_filter( 'script_loader_tag', [ $this, 'add_plausible_attributes' ], 10, 2 );
add_filter( 'plausible_analytics_script_params', [ $this, 'maybe_add_custom_params' ] );
add_filter( "post_row_actions", [ $this, 'add_link_to_analytics'], 10 , 2);
add_filter( "page_row_actions", [ $this, 'add_link_to_analytics'], 10 , 2);
}

/**
Expand Down Expand Up @@ -109,7 +110,7 @@ public function maybe_add_custom_params( $params ) {
* Add link to analytics page for a single post
* @param array $actions
* @param WP_Post $post
*
*
* @return array
*/
public function add_link_to_analytics($actions, $post){
Expand Down

0 comments on commit e1c95fe

Please sign in to comment.