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.
Filters
Section titled “Filters”roadmap_allow_multiple_products
Section titled “roadmap_allow_multiple_products”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.
roadmap_available_templates
Section titled “roadmap_available_templates”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;} );roadmap_pro_public_user_profiles
Section titled “roadmap_pro_public_user_profiles”Controls who may read ANOTHER member’s activity through the member activity and top-contributor REST endpoints (/users/{id}/activity, /users/top-contributors) and the [roadmap_user_profile user_id="N"] shortcode. A member can always read their own. Default: current_user_can( 'edit_others_posts' ), so editors and administrators only; logged-out visitors are always refused unless you return true. Receives the requested user ID as a second argument (0 for the contributor list).
add_filter( 'roadmap_pro_public_user_profiles', '__return_true' );Actions
Section titled “Actions”| 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 |

