8.4 Developer Reference
Integration points for developers customizing Tangible Tweaks for LearnDash.
Hooks
tangible_tweaks_for_learndash_user_creation_args (filter)
Fires when the group user-management feature creates a new user. Filters the arguments passed to WordPress user creation, letting you adjust the generated username, role, or other fields before the account is created.
add_filter( 'tangible_tweaks_for_learndash_user_creation_args', function( $args ) {
$args['role'] = 'subscriber'; // example: force a specific role
return $args;
} );
tangible_tweaks_for_learndash_user_created (action)
Fires after the group user-management feature has created a new user, receiving the new user's ID. Use it to trigger onboarding side effects such as CRM sync or logging.
add_action( 'tangible_tweaks_for_learndash_user_created', function( $user_id ) {
// example: tag the user in your CRM
} );
Constants
TANGIBLE_CLOUD_API
The base URL of the Tangible platform used for license activation and plugin updates. Defaults to the production platform. Can be defined in wp-config.php before the plugin loads to point staging or development environments at a different endpoint:
define( 'TANGIBLE_CLOUD_API', 'https://api.tangible.one' );
Most sites should never set this. The default is correct.
TTWEAKS_LD_VERSION
The installed plugin version, as a string. Read-only; useful for feature detection in custom code.
Feature toggles in code
Feature enable/disable state is stored in a single WordPress option, ttweaksld_settings, managed by the settings page. Treat the settings page as the supported interface. The option's internal format is not a public API and may change between versions.
Debug log
The plugin can write to its own log file (tangible-tweaks-for-learndash.log) for troubleshooting. Log output is intended for development use; if support asks you for logs, they will provide instructions for your specific case.