Home > Software engineering >  Wordpress hide actions from functions.php
Wordpress hide actions from functions.php

Time:06-01

I added some actions hooks in functions.php & i don't want customer to see those hooks. Please help me how ?

I tried, to create a new file then add the code and attach it in functions.php but after doing this code not work.. Please help me. Please help me into this. Thank you so much

CodePudding user response:

You could create a simple one-php-file plugin for your code.

There is an example in /wp-content/plugins/hello.php. It's Matt Mullenweg's Hello Dolly plugin. Copy it and change it. Don't forget to activate it from the Plugins panel when you're ready to go live with it.

Writing plugins for public distribution is a big job, but writing one-off plugins for customers is much easier.

  • Related