如何检测模板标签的拼写错误?

How to detect spelling mistake of template tag?

有谁知道如何检测模板标签的拼写错误吗?

例如:

○ <?php the_permalink() ?>
✕ <?php the_premalink() ?>

谢谢!

最好是使用一个好的 IDE 来包含您的整个项目。 我使用 PHPStorm,这让这变得毫不费力。强烈推荐。 它将扫描您的整个项目,包括 Wordpress,并为您提供有关您希望放入代码中的每个功能的提示。