TodoX icon
Utilities

TodoX hooks reference

  • By SoftTent
  • v0.1.22
  • Updated

TodoX 0.1.22 has 7 actions and 8 filters, read directly from its source code on Nov 19, 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 TodoX fires an action
add_action( 'st_todox_subtask_created', function( $id, $subtask, $task, $arg4 ) {
	// Your code runs here.
}, 10, 4 );

// Change a value TodoX is about to use
add_filter( 'st_todox_allowed_settings_keys', function( $value ) {
	// Change $value here.
	return $value;
}, 10, 1 );

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

  • includes/Api/Controllers/SubtaskController.php line 124
    /**
     * Fires after a subtask is created via the REST API.
     */
    do_action( 'st_todox_subtask_created', $id, $subtask, $task, $this->current_user_id() );
  • includes/Api/Controllers/SubtaskController.php line 151
    /**
     * Fires after a subtask is updated via the REST API.
     */
    do_action( 'st_todox_subtask_updated', $id, $before, $after, $task, $this->current_user_id() );
  • includes/Api/Controllers/TaskController.php line 372
    /**
     * Fires after a comment is added to a task via the REST API.
     */
    do_action( 'st_todox_task_comment_added', $task_id, $task, $this->current_user_id(), wp_kses_post( $content ) );
  • includes/Api/Controllers/TaskController.php line 283
    /**
     * Fires after a task is created via the REST API.
     */
    do_action( 'st_todox_task_created', $id, $task, $this->current_user_id() );
  • includes/Api/Controllers/TaskController.php line 310
    /**
     * Fires after a task is updated via the REST API.
     */
    do_action( 'st_todox_task_updated', $id, $task, $updated, $this->current_user_id() );
  • includes/Api/Controllers/SettingsController.php line 85
    apply_filters( 'st_todox_allowed_settings_keys', [ 'date_format', 'week_start', 'tasks_per_page', 'default_priority', 'email_notifications', 'keep_data_on_uninstall', 'live_chat_support', 'smtp_enabled', 'smtp_host', 'smtp_port', 'smtp_encryption', 'smtp_username', 'smtp_password', 'smtp_from_email', 'smtp_from_name', ] );
  • includes/Abstracts/RestApi.php line 109
    apply_filters( 'st_todox_app_capability', 'read' );
  • softtent-todox.php line 125
    do_action( 'st_todox_before_init' );
  • softtent-todox.php line 129
    do_action( 'st_todox_init' );
  • includes/Helpers/Pro.php line 62
    apply_filters( 'st_todox_is_pro', false );
  • includes/Helpers/Pro.php line 120
    apply_filters( 'st_todox_limits', $defaults );
  • includes/Helpers/Pro.php line 83
    apply_filters( 'st_todox_pro_features', $defaults );
  • includes/Api/Controller.php line 49
    apply_filters( 'st_todox_rest_api_class_map', [ AuthController::class, WorkspaceController::class, DepartmentController::class, TeamController::class, ProjectController::class, SprintController::class, TaskController::class, SubtaskController::class, TaxonomyController::class, NotificationController::class, UserController::class, SettingsController::class, DashboardController::class, ] );
  • includes/Assets/Manager.php line 196
    apply_filters( 'st_todox_script_data', [ 'nonce' => wp_create_nonce( 'wp_rest' ), 'isLoggedIn' => is_user_logged_in(), 'restUrl' => esc_url_raw( rest_url() ), 'adminUrl' => esc_url_raw( admin_url() ), 'pluginUrl' => esc_url_raw( \ST_TODOX_URL ), 'version' => \ST_TODOX_VERSION, 'isPro' => \SoftTent\TodoX\Helpers\Pro::is_active(), 'proInstalled' => \SoftTent\TodoX\Helpers\Pro::is_installed(), 'features' => \SoftTent\TodoX\Helpers\Pro:... );
  • includes/Helpers/Pro.php line 171
    apply_filters( 'st_todox_upgrade_url', 'https://softtent.com/todox/pricing' );

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

Done for you

Rather have it built for you?

Tell us what should change and we’ll write and test the code using these hooks.

Plugin customisation

from $149

New features or changed behaviour, without editing the plugin’s files.

  • Built as a companion plugin, so updates never wipe it
  • Exact quote before we start
  • Tested on staging, then deployed

Typical turnaround: 3–7 business days

Choose this

Not sure which fits? Describe what you need and we’ll suggest the simplest option.

Can't find the right hook?

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