Skip to content

Commit

Permalink
Merge pull request #212 from EdwardBock/post_row_link
Browse files Browse the repository at this point in the history
Post row link for hierarchical post types
  • Loading branch information
Dan0sz authored Jun 6, 2024
2 parents 01b5ff1 + e1c95fe commit 390399c
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 390399c

Please sign in to comment.