Action – apto/re-order-interface/after_manual_interface
Name: apto/re-order-interface/after_manual_interface
Type: Filter
Arguments: none
The apto/re-order-interface/after_manual_interface action fires immediately after the Advanced Post Types Order plugin renders the manual drag-and-drop reordering interface in the admin area. This hook allows developers to inject additional markup, controls, scripts, or informational messages directly below the reorder interface without modifying plugin core files. It is useful for extending the interface with custom tools, filters, notices, or integrations with other plugins. The action runs within the admin context and only on the reorder screen. Developers can attach custom callbacks using add_action() to safely extend the interface while keeping their functionality update-safe and maintainable.
The following example demonstrates how to use the apto/re-order-interface/after_manual_interface action to output a small inline style that hides the Reset button (#order_Reset) from the reorder interface, if the user do not have administrator rights.
add_action('apto/re-order-interface/after_manual_interface', function () {
// Do nothing for administrators
if (current_user_can('administrator')) {
return;
}
echo '<style>
#order_Reset {
display: none !important;
}
</style>';
});
This code hooks into the action that fires after the Advanced Post Types Order plugin renders the manual reorder interface. When the page loads, the inline CSS is printed directly after the interface markup, ensuring the element with the ID order_Reset is hidden from view.
This approach avoids modifying plugin files and keeps the customization update-safe.
The code should be inserted within a custom file in /wp-content/mu-plugins/, or within theme functions.php