স্কিপ করে মূল কন্টেন্ট এ যান

Action: wu_after_switch_template

Allow plugin developers to hook functions after a user or super admin switches the site template.

Only fires on a successful switch — previously this fired even on failure, which caused hooked code (cache clears, notifications, audit logs) to run for switches that did not actually happen.

Parameters

NameTypeDescription
$idintSite ID

Since

  • 1.9.8

Source

Defined in inc/ui/class-template-switching-element.php at line 376