Nested Pages icon
Admin & Maintenance

Nested Pages hooks reference

  • By Hook & Filter
  • v3.3.4 New
  • Updated

Nested Pages 3.3.4 has 3 actions and 59 filters, read directly from its source code on Nov 17, 2026. The list updates automatically when a new version is released.

How to use these hooks

Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.

functions.phpyour child theme
// Run your own code when Nested Pages fires an action
add_action( 'nestedpages_post_order_updated', function( $post_id, $parent, $key, $filtered ) {
	// Your code runs here.
}, 10, 4 );

// Change a value Nested Pages is about to use
add_filter( 'nestedpages_sorting_capability', function( $grant_capability, $type, $role ) {
	// Change $grant_capability here.
	return $grant_capability;
}, 10, 3 );

Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.

All hooks

  • app/Entities/User/UserCapabilities.php line 47
    /**
     * Filters the sorting capability for a given role and post type.
     */
    apply_filters( 'nestedpages_sorting_capability', $grant_capability, $type, $role );
  • app/Entities/PostType/PostTypeCustomFields.php line 39 · used in 5 places
    apply_filters( 'nestedpages_quickedit_custom_fields', [], $post_type, $column );
  • app/Entities/AdminMenu/EnabledMenus.php line 133 · used in 3 places
    apply_filters( 'nestedpages_menu_order', 5, $this->post_type );
  • app/Views/partials/row-link.php line 104 · used in 3 places
    apply_filters( 'nestedpages_thumbnail_fallback', false, $this->post );
  • app/Entities/AdminMenu/AdminSubmenu.php line 90 · used in 2 places
    apply_filters( 'nestedpages_default_submenu_text', $label, $this->post_type );
  • app/Entities/Listing/Listing.php line 466 · used in 2 places
    apply_filters( 'nestedpages_post_sortable', true, $this->post, $this->post_type );
  • app/Entities/AdminMenu/BlockEditorLink.php line 54 · used in 2 places
    apply_filters( "nestedpages_sort_view_{$type->name}", $this->user->canViewSorting($type->name), $this->user->getRoles() );
  • app/Views/partials/row-link.php line 101 · used in 2 places
    apply_filters( 'nestedpages_thumbnail', $image, $this->post );
  • the_title

    filter
    app/Views/partials/row-link.php line 38 · used in 2 places
    apply_filters( 'the_title', $this->post->title, $this->post->id );
  • app/Entities/Post/PostFactory.php line 72
    apply_filters( 'default_content', $new_post->post_content, $new_post );
  • app/Entities/Listing/Listing.php line 243
    apply_filters( 'display_post_states', $post_states, $this->post );
  • app/Entities/User/UserRepository.php line 57
    apply_filters( 'editable_roles', $all_roles );
  • app/Views/listing.php line 24
    apply_filters( 'nestedpages_add_multiple_text', esc_html__('Add Multiple', 'wp-nested-pages'), $this->post_type );
  • app/Views/listing.php line 18
    apply_filters( 'nestedpages_add_new_text', esc_html($this->post_type->labels->add_new), $this->post_type );
  • app/Entities/PostType/PostTypeCustomFields.php line 27
    apply_filters( 'nestedpages_bulkedit_custom_fields', [], $post_type, $column );
  • app/Entities/User/UserRepository.php line 92
    apply_filters( 'nestedpages_capabilities', $capabilities, $role );
  • app/Entities/Listing/ListingQuery.php line 103
    apply_filters( 'nestedpages_listing_statuses', $statuses, $this->post_type );
  • app/Entities/Listing/ListingRepository.php line 50
    apply_filters( 'nestedpages_listing_taxonomies', ['public' => true] );
  • app/Entities/Listing/ListingRepository.php line 60
    apply_filters( 'nestedpages_listing_taxonomy_terms', [] );
  • app/Views/forms/quickedit-post.php line 185
    apply_filters( 'nestedpages_make_sticky_text', __('Make Sticky', 'wp-nested-pages'), $this->post, $this->post_type );
  • app/Views/partials/row.php line 77
    apply_filters( 'nestedpages_make_sticky_text_row', __('(Sticky)', 'wp-nested-pages'), $this->post, $this->post_type );
  • app/Config/SettingsRepository.php line 58
    apply_filters( 'nestedpages_menu_autosync_enabled', $enabled );
  • app/Config/SettingsRepository.php line 68
    apply_filters( 'nestedpages_menu_private_enabled', $enabled );
  • app/Entities/NavMenu/NavMenuSyncListing.php line 60
    apply_filters( 'nestedpages_menu_sync', $args, $nest_level );
  • app/Config/SettingsRepository.php line 48
    apply_filters( 'nestedpages_menu_sync_enabled', $enabled );
  • app/Config/SettingsRepository.php line 38
    apply_filters( 'nestedpages_menu_sync_visible', $visible );
  • app/Config/SettingsRepository.php line 99
    apply_filters( 'nestedpages_menus_disabled', $disabled );
  • app/Entities/Post/PostFactory.php line 64
    apply_filters( 'nestedpages_new_post', $post, $data );
  • app/Entities/Listing/ListingQuery.php line 111
    apply_filters( 'nestedpages_page_listing', $query_args, $this->post_type );
  • app/Views/listing.php line 13
    apply_filters( 'nestedpages_page_title', esc_html($this->post_type->labels->name), $this->post_type );
  • app/Views/partials/row.php line 92
    apply_filters( 'nestedpages_post_author', $this->post->author, $this->post );
  • app/Entities/Post/PostUpdateRepository.php line 97
    do_action( 'nestedpages_post_order_updated', $post_id, $parent, $key, $filtered );
  • app/Views/partials/row.php line 33
    apply_filters( 'nestedpages_post_title', esc_attr($title), $this->post );
  • app/Entities/Post/PostRepository.php line 214
    apply_filters( 'nestedpages_post_tree_children', $args );
  • app/Entities/Post/PostRepository.php line 188
    apply_filters( 'nestedpages_post_tree_parent', $args );
  • app/Entities/Post/PostUpdateRepository.php line 103
    do_action( 'nestedpages_posts_order_updated', $posts, $parent );
  • app/Views/partials/row.php line 206
    apply_filters( 'nestedpages_quickedit', true, $this->post );
  • app/Entities/PostType/PostTypeRepository.php line 503
    apply_filters( 'nestedpages_quickedit_post_statuses', $statuses, $post_type );
  • app/Entities/NavMenu/NavMenuSync.php line 61
    apply_filters( 'nestedpages_recursive_remove_menu_item', false, $id );
  • app/Entities/PostType/PostTypeRepository.php line 120
    apply_filters( "nestedpages_row_action_{$action}", true, $post_type );
  • app/Views/partials/row.php line 10
    apply_filters( 'nestedpages_row_css_classes', $row_classes, $this->post, $this->post_type );
  • app/Entities/Listing/Listing.php line 447
    apply_filters( 'nestedpages_row_parent_css_classes', $row_parent_classes, $this->post, $this->post_type );
  • app/Entities/PostType/PostTypeRepository.php line 430
    apply_filters( 'nestedpages_sortview_text', $label, $post_type );
  • app/Views/forms/quickedit-post.php line 184
    apply_filters( 'nestedpages_sticky_available', $sticky_available, $this->post, $this->post_type );
  • app/Views/listing.php line 34
    do_action( 'nestedpages_top_buttons', $this->post_type );
  • app/Entities/Post/PostUpdateRepository.php line 59
    apply_filters( 'nestedpages_use_update_post', false );
  • app/Entities/Post/PrivatePostParent.php line 35
    apply_filters( 'page_attributes_dropdown_pages_args', $args, $post );
  • app/Entities/Listing/Listing.php line 267
    apply_filters( 'page_row_actions', $actions, $this->post );
  • post_link

    filter
    app/Views/partials/row.php line 259
    apply_filters( 'post_link', $link, $this->post, false );
  • app/Entities/Listing/Listing.php line 266
    apply_filters( 'post_row_actions', $actions, $this->post );
  • app/Views/partials/row.php line 267
    apply_filters( 'preview_post_link', $link, $this->post );

Generated from Nested Pages's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.

Can't find the right hook?

We can build the customisation for you. Describe what you need: