Skip to content

Instantly share code, notes, and snippets.

@imath
Created July 17, 2025 10:18
Show Gist options
  • Save imath/fa8a2263d8cb3b97532a3de34d53bb33 to your computer and use it in GitHub Desktop.
Save imath/fa8a2263d8cb3b97532a3de34d53bb33 to your computer and use it in GitHub Desktop.
Retraceur filters & constants to use to bring back some default WP behaviours.
<?php
/**
* Custom functions.
*
* You can use a `/mu-plugins/functions.php` file to always run this code into your Retraceur instance.
*/
// Bring back WP regular registration workflow.
add_filter( 'retraceur_create_account_on_signup', '__return_true' );
<?php
/**
* Edit your wp-config.php file to set additional constants as shown below.
*/
/* Add any custom values between this line and the "stop editing" line. */
// Bring back WP regular default roles.
define( 'USE_DEFAULT_WP_ROLES', true );
/* That's all, stop editing! Happy publishing. */
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment