Visualizzazione 2 filoni di risposte
Visualizzazione 2 filoni di risposte
- Devi essere connesso per rispondere a questo topic.
Email: info@wpitaly.it
Home › Forum › Problemi Vari con WP › Aggancio plug-in
E’ possibile agganciare un plug-in a un tasto creato sulla home page?In tal caso cosa devo scrivere in add_action e di che tipo deve essere questo tasto sulla home page???
Vorrei strutturare una cosa di questo genere, ma non so proprio come muovermi:
|Inserisci testo|
Invia testo -> una volta cliccato il mio plug-in parte e dovrebbe prelevare la stringa dalla form per elaborarla.
E’ possibile semplificare il tutto creando appunto una form che punti a un’altra pagina, ma io vorrei creare un plug-in che prelevi i dati inseriti da queste form per poi elaborarli.
Non so se sono stato chiaro.
Ho visto l’hook login_form ma il plugin parte subito prima dell’autenticazione a me serve uno che parti subito dopo :S!!! Ho visto che c’è uno wp_login ma nn ho capito quando aggisce in realtà !
Scusate la banalità , ho creato questo semplice plugin.
Non dovrebbe funzionare cosi:
quando un utente si disconnette mi il messaggio
<?php
/*
Plugin Name: m-license-plugin
Plugin URI:
Description: prova
Version: 1.0
Author:
Author URI:
*/
function m_print_comment()
{
?>
<h1>PROVAAAAAAAAAAAAAAAAAAAAAAAAA</h1>
<?php
}
add_action(‘wp_logout’, ‘m_print_comment’);
?>
WPItaly - Copyright Creative Commons: CC BY-NC-SA 4.0