Skip to content

Hooks Reference

Product Roadmap Pro’s own action and filter hooks, verified against the 1.8.0 codebase. This list is intentionally short: Pro’s earlier documentation described a much larger set of hooks (timeline, analytics, and export hooks in particular) that were never actually implemented in code. Only the hooks below exist and fire.

For hooks fired by the free Product Roadmap plugin itself (votes, comments, status changes), see the free plugin’s own developer documentation.

Controls whether a roadmap item, changelog entry, or guest suggestion can belong to more than one product. Default false.

add_filter( 'roadmap_allow_multiple_products', '__return_true' );

With the default false, the Products panel in the editor is a single choice, and a REST write with more than one roadmap_product term returns 400 roadmap_single_product.

Registers the templates offered by the shortcode, block, and Templates tab. Pro adds Timeline, List, Cards, Minimal, and Idea Box here (the free plugin registers Board). Add a custom template the same way:

add_filter( 'roadmap_available_templates', function ( $templates ) {
$templates['gantt'] = [
'name' => __( 'Gantt Chart', 'my-plugin' ),
'description' => __( 'Custom Gantt visualization', 'my-plugin' ),
'component' => 'MyGanttComponent',
];
return $templates;
} );

Controls whether the member activity and top-contributor REST endpoints (/users/{id}/activity, /users/top-contributors) are readable while logged out. Default: the value of is_user_logged_in() - logged out by default, since these endpoints can otherwise be walked to enumerate every user ID on the site.

add_filter( 'roadmap_pro_public_user_profiles', '__return_true' );
Hook Fired when Arguments
roadmap_items_merged An item merge completes $source_id (trashed item), $target_id (item that received votes/comments)
roadmap_item_reordered An item’s status or position changes via drag and drop $item_id, $new_status, $new_position
roadmap_guest_suggestion_submitted A logged-out visitor submits a suggestion $post_id, $request (the WP_REST_Request)
roadmap_guest_suggestion_status_changed A guest suggestion is approved or rejected $post_id, $status, $post