In the example above, we would put the following line in the plugin file
Create the PHP function that should execute when the event occurs, in your plugin file.
Crear una función PHP, en su archivo de plugin, que podría ejecutarse cuando ocurre el evento.
Click on browse and select the archived plugin file.
Start by creating a function in your plugin file
You can get the plugin file from the attachment in this article.
You can also disable this plugin file manually
This can happen right after we check to see if the main plugin file is accessed directly
Esto puede suceder justo tras comprobar si al archivo del plugin principal se accede de forma directa
Finally, notice that filename attribute that contains our plugin file has an attribute called plugin.
Por último, observa que el atributo filename, que contiene nuestro archivo de complemento tiene un atributo llamado plugin.
Make a copy of the first function in your plugin file and edit the function name so they're different.
Haga una copia de la primera función en su archivo de complemento y edite el nombre de la función para que sean diferentes.
If your theme has action hooks, you can use one of those in your plugin file, in a similar way to before
Si su tema tiene acción, puede usar uno de esos en su archivo de complemento, de manera similar a como lo hizo antes
Browse for the plugin file ()
Busca el archivo del plugin ()
The compressed plugin file is corrupt, missing one of the plugin files or ran out of disk space, Ensure that you have enough free disk space and try re-downloading the plugin
El archivo del plugin comprimido está dañado, falta uno de los archivos del plugin o no hay espacio suficiente en disco. Asegúrese de tener suficiente espacio libre e intente descargar de nuevo el plugin.
Put your PHP function in a plugin file, and activate it.