Miroir Local Sync 1.5.1 has 7 actions and 20 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.
// Run your own code when Miroir Local Sync fires an action
add_action( 'sumotori_sync_long_operation_tick', function() {
// Your code runs here.
}, 10, 1 );
// Change a value Miroir Local Sync is about to use
add_filter( 'https_local_ssl_verify', 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
-
/** * Battement de cœur d'une opération longue. */ do_action( 'sumotori_sync_long_operation_tick' ); -
/** * Ce filtre est documenté dans wp-includes/class-wp-http-streams.php. */ apply_filters( 'https_local_ssl_verify', false ); -
/** * L'import est terminé et les options du plugin sont ré-ancrées. */ do_action( 'sumotori_sync_after_import', $result ); -
/** * Après l'exécution d'un raccourci. */ do_action( 'sumotori_sync_after_preset', $preset, $result ); -
/** * Après une opération (réelle ou dry-run), quel que soit le résultat. */ do_action( 'sumotori_sync_after_run', $this->op_name(), $profile_id, $result, $args ); -
/** * Ajouter des métas protégées à l'allowlist de la fusion. */ apply_filters( 'sumotori_sync_allowed_protected_meta', array() ); -
/** * Plafonner le nombre de lignes chargées par la carte GUID. */ apply_filters( 'sumotori_sync_guid_index_max', self::GUID_INDEX_MAX ); -
/** * Filtre les motifs de tables préservées par la protection des données * vivantes (sous-chaînes, préfixe inclus). */ apply_filters( 'sumotori_sync_live_data_exclusions', array( $p . 'wc_order', $p . 'woocommerce_order_item', $p . 'woocommerce_sessions', $p . 'wc_customer_lookup', $p . 'wc_reserved_stock', $p . 'users', $p . 'usermeta', $p . 'comment', $p . 'woocommerce_downloadable_product_permissions', $p . 'woocommerce_payment_token', $p . 'actionscheduler_', ) ); -
/** * Hôtes considérés comme locaux (en plus de localhost, 127.0.0.0/8, ::1, * `.local`, `.test`, `.localhost`). Une entrée commençant par un point est * traitée comme un suffixe, ex. « .ddev.site », « .lndo.site ». */ apply_filters( 'sumotori_sync_local_hosts', array() ); -
/** * Suffixes de méta-clés utilisateur RÉELLEMENT dérivés du préfixe. */ apply_filters( 'sumotori_sync_prefixed_meta_keys', array(), $source_prefix, $this->wpdb->prefix ); -
/** * Options du plugin préservées d'un import de base. */ apply_filters( 'sumotori_sync_preserved_options', array( 'sumotori_sync_dir_key', SUMOTORI_SYNC_OPTION_PROFILES, SUMOTORI_SYNC_OPTION_SETTINGS, SUMOTORI_SYNC_OPTION_PRESETS, Sumotori_Sync_Logger::OPTION, 'sumotori_sync_lock', ) ); -
/** * Filtre un raccourci avant son exécution (UI, AJAX ou cron). */ apply_filters( 'sumotori_sync_preset', $preset ); -
/** * Un profil vient d'être supprimé. */ do_action( 'sumotori_sync_profile_deleted', $id ); -
/** * Filtrer le traitement des métas protégées à la fusion de contenu. */ apply_filters( 'sumotori_sync_protected_meta_mode', $mode ); -
/** * Exiger un sha256 sur tout dépôt SFTP. */ apply_filters( 'sumotori_sync_require_sftp_checksum', false ); -
/** * Attente maximale, en secondes, d'un rollback bloqué par le verrou distant. */ apply_filters( 'sumotori_sync_rollback_wait_max', self::ROLLBACK_WAIT_MAX ); -
/** * Filtre les options d'une opération avant son exécution. */ apply_filters( 'sumotori_sync_run_args', $args, $this->op_name(), $profile_id ); -
/** * Filtre les réglages avant enregistrement (les add-ons y persistent leurs * propres clés, postées via « sumotori_sync_settings_sections »). */ apply_filters( 'sumotori_sync_save_settings', $settings ); -
/** * Options laissées intactes par le search-replace. */ apply_filters( 'sumotori_sync_search_replace_skip_options', self::preserved_options(), $table ); -
/** * Sections de réglages supplémentaires (add-ons), rendues dans le même * formulaire : les champs postés sont persistés via le filtre « * sumotori_sync_save_settings ». */ do_action( 'sumotori_sync_settings_sections', $s ); -
/** * Filtre le corps JSON envoyé au webhook (Slack, Discord, endpoint maison). */ apply_filters( 'sumotori_sync_webhook_payload', $payload, $url ); -
apply_filters( 'sumotori_sync_content_statuses', self::SYNC_STATUSES ); -
apply_filters( 'sumotori_sync_files_snapshot_max_bytes', self::SNAPSHOT_MAX_BYTES ); -
apply_filters( 'sumotori_sync_follow_symlinks', false ); -
apply_filters( 'sumotori_sync_max_extract_bytes', 0 ); -
apply_filters( 'sumotori_sync_register_rest_routes', $ours );
Generated from Miroir Local Sync'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.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin 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 thisNot 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: