Risultati della ricerca per 'Wordpress insert script'

Stai vedendo 11 risultati - da 1 a 11 (di 11 totali)
    • enricotv

      (@enricotv)


      Ciao a tutti,

      dopo i due più recenti aggiornamenti di wordpress non mi funziona più un plugin che genera post di una determinata categoria derivante dalla compilazione di moduli di CF7.
      L’ho controllato e ricontrollato eppure niente da fare, con il debug di wordpress mi esce il seguente errore:

      Fatal error: Uncaught TypeError: call_user_func_array(): Argument #1 ($callback) must be a valid callback, function “add_author_support_to_posts” not found or invalid function name in /var/www/virtual/mlnv.org/sportelodelsitadino/htdocs/wp-includes/class-wp-hook.php:324

      Stack trace: 0 /var/www/virtual/mlnv.org/sportelodelsitadino/htdocs/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters() 1 /var/www/virtual/mlnv.org/sportelodelsitadino/htdocs/wp-includes/plugin.php(517): WP_Hook->do_action() 2 /var/www/virtual/mlnv.org/sportelodelsitadino/htdocs/wp-settings.php(643): do_action() 3 /var/www/virtual/mlnv.org/sportelodelsitadino/htdocs/wp-config.php(82): require_once(‘…’) 4 /var/www/virtual/mlnv.org/sportelodelsitadino/htdocs/wp-load.php(50): require_once(‘…’) 5 /var/www/virtual/mlnv.org/sportelodelsitadino/htdocs/wp-blog-header.php(13): require_once(‘…’) 6 /var/www/virtual/mlnv.org/sportelodelsitadino/htdocs/index.php(17): require(‘…’) 7 {main} thrown in /var/www/virtual/mlnv.org/sportelodelsitadino/htdocs/wp-includes/class-wp-hook.php on line 324

      Questo di seguito alla fine è il codice php del plugin, so che è lunghetto ma se qualcuno gentilmente mi aiuta a trovar l’errore gliene sarei molto grato.
      Grazie infinite

      Enrico

      <?php
      
      if (!defined('ABSPATH')) {
          exit;
      }
      
      /**
       * Our main plugin class
       */
      class CF7_To_WP
      {
      
          /**
           * The single instance of cf7_to_wp.
           * @var     object
           */
          private static $_instance = null;
      
          /**
           * Settings class object
           * @var     object
           */
          public $settings = null;
      
          /**
           * The version number.
           * @var     string
           */
          public $_version;
      
          /**
           * The token.
           * @var     string
           */
          public $_token;
      
          /**
           * The main plugin file.
           * @var     string
           */
          public $file;
      
          /**
           * The main plugin directory.
           * @var     string
           */
          public $dir;
      
          /**
           * The plugin assets directory.
           * @var     string
           */
          public $assets_dir;
      
          /**
           * The plugin assets URL.
           * @var     string
           */
          public $assets_url;
      
          /**
           * Our post type slug.
           *
           * @var string
           */
          private $post_type = 'cf7_form_messages';
      
          /**
           * Constructor function.
           * @access  public
           */
          public function __construct($file = '', $version = '0.1')
          {
              $this->_version = $version;
              $this->_token = 'cf7_to_wp';
      
              // Load plugin environment variables
              $this->file = $file;
              $this->dir = dirname($this->file);
              $this->assets_dir = trailingslashit($this->dir) . 'assets';
              $this->assets_url = esc_url(trailingslashit(plugins_url('/assets/', $this->file)));
      
              // Handle localization
              $this->load_plugin_textdomain();
              add_action('init', array($this, 'load_localization'), 0);
          }
      
          /**
           * Initialize all the things!
           */
          public function init()
          {
              // Register Messages post type.
              add_action('init', array($this, 'register_form_msg_post_type'));
              add_filter('add_menu_classes', array($this, 'menu_msg_form_bubble'));
              add_filter('post_row_actions', array($this, 'action_row_for_msg_posts'), 10, 2);
              add_action('admin_init', [$this, 'maybe_mark_form_message_as_read']);
              add_filter('wpcf7_verify_nonce', '__return_true');
      
              // Hook into CF7 actions.
              add_filter('wpcf7_editor_panels', array($this, 'add_cf7_panel'));
              add_action('wpcf7_after_save', array($this, 'save_cf7_data'), 50, 1);
              add_action('wpcf7_mail_sent', array($this, 'create_post_on_form_submission'), 50, 1);
              add_action('wpcf7_mail_failed', array($this, 'create_post_on_form_submission'), 50, 1);
              add_action('init', 'add_author_support_to_posts');
              add_filter('wpcf7_verify_nonce', '__return_true');
          }
      
          /**
           * Load plugin localisation
           */
          public function load_localization()
          {
              load_plugin_textdomain('cf7_to_wp', false, dirname(plugin_basename($this->file)) . '/lang/');
          }
      
          /**
           * Load plugin textdomain
           */
          public function load_plugin_textdomain()
          {
              $domain = 'cf7_to_wp';
              $locale = apply_filters('plugin_locale', get_locale(), $domain);
              load_textdomain($domain, WP_LANG_DIR . '/' . $domain . '/' . $domain . '-' . $locale . '.mo');
              load_plugin_textdomain($domain, false, dirname(plugin_basename($this->file)) . '/lang/');
          }
      
          /**
           * Register our post type to store messages.
           */
          public function register_form_msg_post_type()
          {
              register_post_type(
                  $this->post_type,
                  array(
                      'labels' => array(
                          'name' => __('Pratiche', 'cf7_to_wp'),
                          'singular_name' => __('Pratica', 'cf7_to_wp'),
                          'add_new' => __('Aggiungi nuova', 'cf7_to_wp'),
                          'add_new_item' => __('Aggiungi nuova pratica', 'cf7_to_wp'),
                          'edit' => __('Modifica', 'cf7_to_wp'),
                      ),
                      'description' => 'Pratiche e Servizi',
                      'has_archive' => true,
                      'publicly_queryable' => true,
                      'capability_type' => 'post',
                      'menu_position' => 32,
                      'show_ui' => true,
                      'show_in_menu' => true,
                      'public' => true,
                      'query_var' => true,
                      'menu_icon' => 'dashicons-buddicons-pm',
                      'taxonomies' => array('category'),
                      'supports' => array(
                          'author',
                          'title',
      					'category',
                          'editor',
                          'excerpt',
                          'trackbacks',
                          'page-attributes',
                          'custom-fields',
                          'thumbnail',
                          'sticky',
                      ),
                  )
              );
          }
      
          /**
           * Add bubble to admin menu
           *
           * @param array $menu
           * @return array $menu
           */
          public function menu_msg_form_bubble($menu)
          {
              $form_messages_count = wp_count_posts($this->post_type);
              $pending_count = $form_messages_count->draft + $form_messages_count->pending;
      
              foreach ($menu as $menu_key => $menu_data) {
                  if ("edit.php?post_type={$this->post_type}" !== $menu_data[2]) {
                      continue;
                  }
      
                  $menu[$menu_key][0] .= " <span class='update-plugins count-$pending_count'><span class='plugin-count'>" . number_format_i18n($pending_count) . '</span></span>';
              }
      
              return $menu;
          }
      
          /**
           * Add "Mark as read" action for our post type
           *
           * @param array $actions
           * @param WP_Post $post
           * @return array $actions
           */
          public function action_row_for_msg_posts($actions, $post)
          {
              if ($post->post_type === $this->post_type && $post->post_status !== 'publish') {
                  $actions['mark_as_read'] = sprintf(
                      '<a href="%s" class="aria-button-if-js" aria-label="%s">%s</a>',
                      wp_nonce_url("edit.php?post_type={$this->post_type}&action=mark_as_read&message_id={$post->ID}", "mark_message_as_read_{$post->ID}"),
                      esc_attr(__('Mark as read', 'cf7_to_wp')),
                      __('Mark as read', 'cf7_to_wp')
                  );
              }
      
              return $actions;
          }
      
          /**
           * Mark form message as read
           */
          public function maybe_mark_form_message_as_read()
          {
              if (isset($_GET['action']) && $_GET['action'] == 'mark_as_read' && isset($_GET['message_id'])) {
                  $message_id = (int) $_GET['message_id'];
      
                  if (isset($_GET['_wpnonce']) && wp_verify_nonce($_GET['_wpnonce'], "mark_message_as_read_{$message_id}")) {
                      $updated_post = wp_update_post(
                          array(
                              'ID' => $message_id,
                              'post_status' => 'publish',
                          )
                      );
      
                      wp_redirect(wp_get_referer());
                      exit();
                  }
              }
          }
      
          /**
           * Add new panel to CF7 form settings
           *
           * @param array $panels
           * @return array
           */
          public function add_cf7_panel($panels)
          {
              $panels['cf7-to-wp'] = array(
                  'title' => __('Salva messaggi', 'cf7_to_wp'),
                  'callback' => array($this, 'cf7_to_wp_form_metabox'),
              );
      
              return $panels;
          }
      
          /**
           * Output the content of our panel/metabox
           *
           * @param WPCF7_ContactForm $post CF7 object
           */
          public function cf7_to_wp_form_metabox($post)
          {
              $id = $post->id();
              $cf7towp = get_post_meta($id, '_cf7towp', true);
              $cf7towp = wp_parse_args(
                  $cf7towp,
                  array(
                      'active' => 0,
                      'title' => '',
                      'content' => '',
                      'category' => 0,
                  )
              );?>
      
      		<p style="margin-bottom:1em; font-size:1.25em;">
      			<?php _e('Abilitando la casella sottostante ogni modulo inviato compilato verrà pubblicato come nuovo articolo "Pratiche" privato.', 'cf7_to_wp');?>
      		</p>
      
      		<div class="mail-field" style="margin-bottom:1em;">
      			<label for="cf7towp-active">
      				<input type="checkbox" id="cf7towp-active" name="wpcf7-cf7towp-active" value="1" <?php checked($cf7towp['active'], 1);?> />
      				<strong><?php echo esc_html(__('Salvare i moduli compilati come articoli "Pratiche"?', 'cf7_to_wp')); ?></strong>
      			</label>
      
      		</div>
      
      		<div class="pseudo-hr"></div>
      
      		<div class="mail-field">
      			<p class="description">
      				<label for="cf7towp-category"><?php echo esc_html(__('Categoria dell\'articolo', 'cf7_to_wp')); ?></label>
      				<select id="cf7towp-category" name="wpcf7-cf7towp-category">
      					<?php $this->get_category_options($id)?>
      				</select>
      			</p>
      		</div>
      
      		<div class="mail-field">
      			<p class="description">
      				<label for="cf7towp-title"><?php echo esc_html(__('Titolo dell\'articolo', 'cf7_to_wp')); ?></label>
      				<input type="text" id="cf7towp-title" name="wpcf7-cf7towp-title" class="large-text" value="<?php echo esc_attr($cf7towp['title']); ?>" />
      			</p>
      		</div>
      
      		<div class="mail-field">
      			<p class="description">
      				<label for="cf7towp-content"><?php echo esc_html(__('Contenuto dell\'articolo', 'cf7_to_wp')); ?></label>
      				<textarea id="cf7towp-content" name="wpcf7-cf7towp-content" cols="100" rows="10" class="large-text"><?php echo esc_attr($cf7towp['content']); ?></textarea>
      			</p>
      		</div>
      
      		<hr>
      
      		<p class="description" style="margin-top:.5em;">
      			<span style="float:left; width:60%;">
      				<?php _e('Usa i classici CF7 [mail-tag] per i contenuti dinamici nel titolo e nel contenuto (li trovi sulla tab Mail).', 'cf7_to_wp');?>
      			</span>
      			<span style="text-align:right; float:right; width:40%;">
      				<?php
      $credits_link = '<a target="_blank" href="https://github.com/psaikali/contact-form-to-wp-posts">Fonte</a>';
              printf(__('A Contact Form 7 addon by %1$s', 'cf7_to_wp'), $credits_link);
              ?>
      			</span>
      		</p>
      
      		<hr>
      	<?php }
      
          /**
           * Get category field data
           */
      
          public function get_category_options($id)
          {
      
              $cf7towp = get_post_meta($id, '_cf7towp', true);
              $cf7towp = wp_parse_args(
                  $cf7towp,
                  array(
                      'active' => 0,
                      'title' => '',
                      'content' => '',
                      'category' => 0,
                  )
              );
      
              $args = array(
                  'taxonomy' => 'category',
                  'hide_empty' => false,
              );
      
              $terms = get_terms($args);
      
              foreach ($terms as $term) {
                  $options .= '<option value="' . $term->term_id . '" ' . selected($cf7towp['category'], $term->term_id, true) . '>' . $term->name . '</option>';
              }
      
              echo $options;
      
          }
      
          /**
           * Save metabox/tab data when CF7 form settings page is saved.
           *
           * @param WPCF7_ContactForm $contact_form
           */
          public function save_cf7_data($contact_form)
          {
              global $user_id;
              $user_id = get_current_user_id();
              $id = $contact_form->id();
              $cf7towp = array();
              $cf7towp['active'] = (!empty($_POST['wpcf7-cf7towp-active']));
      
              if (isset($_POST['wpcf7-cf7towp-title'])) {
                  $cf7towp['title'] = sanitize_text_field($_POST['wpcf7-cf7towp-title']);
              }
      
              if (isset($_POST['wpcf7-cf7towp-content'])) {
                  $cf7towp['content'] = wp_kses_post($_POST['wpcf7-cf7towp-content']);
              }
      
              if (isset($_POST['wpcf7-cf7towp-category'])) {
                  $cf7towp['category'] = wp_kses_post($_POST['wpcf7-cf7towp-category']);
              }
      
              update_post_meta($id, '_cf7towp', $cf7towp);
          }
      
          /**
           * Create a Messages post when form is submitted
           *
           * @param WPCF7_ContactForm $contact_form
           */
      
          public function get_current_user_id()
          {
              if (class_exists('Jwt_Auth_Public')) {
                  $jwt = new \Jwt_Auth_Public('jwt-auth', '1.1.0');
                  $token = $jwt->validate_token(false);
                  if (\is_wp_error($token)) {
                      return false;
                  }
      
                  return $token->data->user->id;
              } else {
                  return false;
              }
          }
      
          public function create_post_on_form_submission($contact_form)
          {
      
              $form_post = $contact_form->id();
              $cf7towp_data = get_post_meta($form_post, '_cf7towp', true);
      
              if ($cf7towp_data['active'] === true) {
                  $submission = WPCF7_Submission::get_instance();
      
                  if ($submission) {
                      $meta = array();
                      $meta['ip'] = $submission->get_meta('remote_ip');
                      $meta['ua'] = $submission->get_meta('user_agent');
                      $meta['url'] = $submission->get_meta('url');
                      $meta['date'] = date_i18n(get_option('date_format'), $submission->get_meta('timestamp'));
                      $meta['time'] = date_i18n(get_option('time_format'), $submission->get_meta('timestamp'));
                  }
      
                  $post_title_template = $cf7towp_data['title'];
                  $post_content_template = $cf7towp_data['content'];
                  $post_category[] = $cf7towp_data['category'];
      
                  $post_title = wpcf7_mail_replace_tags(
                      $post_title_template,
                      array(
                          'html' => true,
                          'exclude_blank' => true,
                          'has_archive' => true,
                      )
                  );
      
                  $post_content = wpcf7_mail_replace_tags(
                      $post_content_template,
                      array(
                          'html' => true,
                          'exclude_blank' => true,
                          'has_archive' => true,
                      )
                  );
      
                  $new_form_msg = wp_insert_post(
      
                      array(
                          'post_type' => $this->post_type,
                          'post_title' => $post_title,
                          'post_content' => $post_content,
                          'post_author' => $current_user -> ID,
                          'post_status' => 'private',
                          'has_archive' => true,
                          'post_category' => $post_category,
                      )
                  );
      
                  if ($submission) {
                      update_post_meta($new_form_msg, 'cf7towp_meta', $meta, );
                  }
              }
          }
      
          /**
           * Main cf7_to_wp singleton instance
           *
           * Ensures only one instance of cf7_to_wp is loaded or can be loaded.
           *
           * @static
           * @see cf7_to_wp()
           * @return Main cf7_to_wp instance
           */
          public static function instance($file = '', $version = '0.1')
          {
              if (is_null(self::$_instance)) {
                  self::$_instance = new self($file, $version);
              }
              return self::$_instance;
          }
      
          /**
           * Cloning is forbidden.
           *
           */
          public function __clone()
          {
              _doing_it_wrong(__FUNCTION__, __('Cheatin’ huh?'), $this->_version);
          }
      
          /**
           * Unserializing instances of this class is forbidden.
           *
           */
          public function __wakeup()
          {
              _doing_it_wrong(__FUNCTION__, __('Cheatin’ huh?'), $this->_version);
          }
      }

    Ciao @valeriyakirkova ,

    Grazie per aver scritto sul Forum di supporto di WordPress.org ,
    Per quanto riguarda i plugin non saprei consigliarti,
    però se vuoi ti lascio qui sotto uno script che ho scritto.

    Puoi inserirlo nella pagina dove ti occorre, semplicemente aggiungendo dell’html personalizzato e modificando l’id del video caricato su YouTube e lo ShortCode del Form (o altro shortcode).

    Ti lascio lo script qui sotto:

    <!DOCTYPE html>
    <html>
    <head>
      <title>Video Player and WpForm/or other, only at the end of the video(version WordPress Media Video)</title>
    </head>
    <body>
      <video id="player" controls>
        <!-- Replace "VIDEO_URL" with the URL of your uploaded video from the WordPress media library -->
        <source src="VIDEO_URL" type="video/mp4">
        <!-- You can add more source elements for different video formats (e.g., WebM, Ogg) -->
        Your browser does not support the video tag.
      </video>
      <div id="form" style="display: none;">
        <!-- Insert your WPForms or other shortcode here -->
        [Your ShortCode]
      </div>
    
      <script>
        // Function called when the video ends
        function showForm() {
          document.getElementById('form').style.display = 'block';
        }
    
        // Code to add an event listener for the 'ended' event of the video
        const player = document.getElementById('player');
        player.addEventListener('ended', showForm);
    
        // Code to pause the video when the form is shown (optional)
        document.getElementById('form').addEventListener('click', function() {
          player.pause();
        });
      </script>
    </body>
    </html>

    P.S.: Ho scritto anche una versione nel caso il video sia su YouTube che utilizza anche l’API YouTube Iframe, la trovi qui

    Spero di esserti stato utile 🙂

    Tienimi aggiornato,
    Enzo

    • hello I had a problem but I can’t figure out where it comes from, I had javascript codes on my site developed with wordpress that were used to make the “menu filter element” work, I already inserted it about three months ago and everything worked, today I realized that the menu no longer works when I click on the buttons it does not change the filters as if the javascript code were no longer there, the strange thing is that it works on chrome and on all other browsers the problem, but I repeat it worked before from all sides not how this sudden problem happened. Solutions? I am attaching the code

      <script>
      filterSelection("all")
      function filterSelection(c) {
        var x, i;
        x = document.getElementsByClassName("filterDiv");
        if (c == "all") c = "";
        // Add the "show" class (display:block) to the filtered elements, and remove the "show" class from the elements that are not selected
        for (i = 0; i < x.length; i++) {
          w3RemoveClass(x[i], "show");
          if (x[i].className.indexOf(c) > -1) w3AddClass(x[i], "show");
        }
      }
      
      // Show filtered elements
      function w3AddClass(element, name) {
        var i, arr1, arr2;
        arr1 = element.className.split(" ");
        arr2 = name.split(" ");
        for (i = 0; i < arr2.length; i++) {
          if (arr1.indexOf(arr2[i]) == -1) {
            element.className += " " + arr2[i];
          }
        }
      }
      
      // Hide elements that are not selected
      function w3RemoveClass(element, name) {
        var i, arr1, arr2;
        arr1 = element.className.split(" ");
        arr2 = name.split(" ");
        for (i = 0; i < arr2.length; i++) {
          while (arr1.indexOf(arr2[i]) > -1) {
            arr1.splice(arr1.indexOf(arr2[i]), 1);
          }
        }
        element.className = arr1.join(" ");
      }
      
      // Add active class to the current control button (highlight it)
      var btnContainer = document.getElementById("myBtnContainer");
      var btns = btnContainer.getElementsByClassName("btn");
      for (var i = 0; i < btns.length; i++) {
        btns[i].addEventListener("click", function() {
          var current = document.getElementsByClassName("active");
          current[0].className = current[0].className.replace(" active", "");
          this.className += " active";
        });
      }
      </script>

      La pagina su cui ho bisogno di aiuto: [devi essere connesso per vedere il link]

    Moderator Cristiano Zanca

    (@cristianozanca)

    L’azione admin_init fa partire la funzione fb_wp_insert_user solo quando viene visualizzata una schermata di back-end (admin):

    Fires as an admin screen or script is being initialized.

    Note, this does not just run on user-facing admin screens. It runs on admin-ajax.php and admin-post.php as well.

    https://developer.wordpress.org/reference/hooks/admin_init/

    quindi la riuscita dei test probabilmente è legata al fatto che durante il test sono state caricate le pagine di admin dell’installazione WordPress

    Come detto precedentemente, wp-cron è lo strumento di WP per gestire gli eventi cronologicamente, per funzionare deve essere caricata una pagina

    WP-Cron works by checking, on every page load, a list of scheduled tasks to see what needs to be run. Any tasks due to run will be called during that page load.

    https://developer.wordpress.org/plugins/cron/

    per questo motivo il consiglio è di legare l’avvio di una funzione WP ad uno strumento cron messo a disposizione dal proprio hosting

    Moderator Rosetta Facciolini

    (@ramthas)

    Web Manager

    Ciao @piergiorgio1959
    dato che sei un principiante suggerisco al momento di usare un plugin come questo per es. https://wordpress.org/plugins/insert-headers-and-footers/
    Oppure cercarne di simili nel repository di WordPress.
    Inserisci il codice così come ti viene fornito in “Settings”, nello spazio “Scripts in Header”, dove vedi anche scritto “These scripts will be printed in the <head> section, e dovrebbe essere a posto.

    Facci sapere se risolvi. Ciao 🙂

    Chi ha creato la discussione specialworld83

    (@specialworld83)

    Buongiorno, ecco la lista dei plugin che uso sul mio portale, il tema è magbook. Tra l’altro ho cambiato con la skin attuale immaginando fosse un problema di skin grafica. Ho disabilitato adblok per consentirvi di visualizzare il sito.

    AddToAny Share Buttons
    Impostazioni | Disattiva
    I pulsanti di condivisione per le tue pagine, includono il pulsante di AddToAny di condivisione universale, Facebook, Twitter, Google+, Pinterest, WhatsApp e molti altri.
    
    Versione 1.7.28 | Di AddToAny | Visualizza i dettagli
    Seleziona Advanced Ads	
    Advanced Ads
    Componenti aggiuntivi | Supporto | Disattiva
    Gestisci e ottimizza i tuoi annunci in WordPress
    
    Versione 1.10.4 | Di Thomas Maier | Visualizza i dettagli
    Seleziona Akismet Anti-Spam	
    Akismet Anti-Spam
    Impostazioni | Disattiva
    Usato da milioni di persone, Akismet è probabilmente il miglior modo al mondo di proteggere il tuo blog dallo spam. Protegge il tuo sito anche mentre dormi. Per iniziare vai alla pagina delle Impostazioni di Akismet per impostare la tua chiave API.
    
    Versione 4.0.8 | Di Automattic | Visualizza i dettagli
    Seleziona Alligator Popup	
    Alligator Popup
    Disattiva
    Shortcode to open a link inside a popup browser window
    
    Versione 1.2.0 | Di cubecolour | Visualizza i dettagli |  |  |  | 
    Seleziona Aspose Doc Exporter	
    Aspose Doc Exporter
    Settings | Disattiva
    Aspose Doc Exporter is a plugin for exporting contents of posts into the doc / docx file.
    
    Versione 3.2.2 | Di Muhammad Sohail | Visualizza i dettagli
    Seleziona Auto Post Thumbnail	
    Auto Post Thumbnail
    Disattiva
    Automatically generate the Post Thumbnail (Featured Thumbnail) from the first image in post (or any custom post type) only if Post Thumbnail is not set manually.
    
    Versione 3.4.1 | Di Aditya Mooley , Tarique Sani | Visualizza i dettagli
    Seleziona Contact Form 7	
    Contact Form 7
    Impostazioni | Disattiva
    Solo un altro plugin per moduli di contatto. Semplice ma flessibile.
    
    Versione 5.0.4 | Di Takayuki Miyoshi | Visualizza i dettagli
    Seleziona Custom Login Page Customizer	
    Custom Login Page Customizer
    Disattiva | Rollback to v1.2.1
    Custom Login Customizer plugin allows you to easily customize your login page straight from your WordPress Customizer! Awesome, right?
    
    Versione 2.0.0 | Di Hardeep Asrani | Visualizza i dettagli
    Seleziona Deactivate User Accounts	
    Deactivate User Accounts
    Disattiva
    Gives you the ability to temporarily disable user accounts without having to delete them.
    
    Versione 1.0 | Di Kevin Ardy | Visualizza i dettagli
    Seleziona Default Thumbnail Plus	
    Default Thumbnail Plus
    Disattiva
    Add a default thumbnail image to post's with no post_thumbnail set.
    
    Versione 1.0.2.3 | Di Patrick Galbraith, gyrus | Visualizza i dettagli
    Seleziona Delete Duplicate Posts	
    Delete Duplicate Posts
    Settings | Opt In | Disattiva
    Remove duplicate blogposts on your blog! Searches and removes duplicate posts and their post meta tags. You can delete posts, pages and other Custom Post Types enabled on your website.
    
    Versione 4.1.9.4 | Di cleverplugins.com | Visualizza i dettagli
    Seleziona Detect AdBlock	
    Detect AdBlock
    Settings | Disattiva
    Detect AdBlock and prevent browsing using PHP Cookie and Session when the visitor has AdBlock in the browser. Easy to use, just install the plugin and activate it.
    
    Versione 1.0.0 | Di Alobaidi | Visualizza i dettagli | Explanation of Use | More Plugins | Elegant Themes | Bluehost
    Seleziona Disabilita Commenti	
    Disabilita Commenti
    Impostazioni | Strumenti | Disattiva
    Permetti agli amministratori di disabilitare globalmente i commenti sui loro siti. I commenti possono essere disabilitati in base alle tipologie di post.
    
    Versione 1.7.1 | Di Samir Shah | Visualizza i dettagli | GitHub
    Seleziona Duplicate Content Cure	
    Duplicate Content Cure
    Disattiva
    Duplicate content cure is a very simple, yet effective SEO plugin that prevents search engines from indexing WordPress pages that contain duplicate content, like archives and category pages.
    
    Versione 1.0 | Di Badi Jones | Visualizza i dettagli
    Seleziona Duplicate Title Checker	
    Duplicate Title Checker
    Disattiva
    This plugin provides alert message for duplicate post title and unique post title when adding new post.
    
    Versione 1.1 | Di Ketan Ajani | Visualizza i dettagli
    Seleziona Fancy Facebook Comments	
    Fancy Facebook Comments
    Settings | Disattiva | Add-Ons | Support Documentation
    Enable Facebook Comments at your website in the easiest possible way
    
    Versione 1.1.8 | Di Team Heateor | Visualizza i dettagli
    Seleziona Featured Image by URL	
    Featured Image by URL
    Disattiva
    This plugin allows to use an external URL Images as Featured Image for your post types. Includes support for Product Gallery (WooCommece).
    
    Versione 1.1.1 | Di Knawat Team | Visualizza i dettagli
    Seleziona Fix Duplicates	
    Fix Duplicates
    Settings | Disattiva
    Find and delete duplicates posts, specifying which one to keep (newest, oldest or manual selection). There is a premium extension that allows you to 301 redirect duplicates to the post you are keeping.
    
    Versione 1.0.4 | Di Stephen Cronin (Scratch99 Design) | Visualizza i dettagli
    Seleziona Google Analytics Dashboard per WP (GADWP)	
    Google Analytics Dashboard per WP (GADWP)
    Impostazioni | Disattiva
    Mostra le statistiche in tempo reale e i rapporti di Google Analytics nella tua bacheca. Inserisce automaticamente il codice di monitoraggio in ogni pagina del tuo sito.
    
    Versione 5.3.5 | Di ExactMetrics | Visualizza i dettagli
    Seleziona GP Back To Top	
    GP Back To Top
    Disattiva
    Create Back To Top Button Custom.
    
    Versione 3.0 | Di Mai Dong Giang (Peter Mai) | Visualizza i dettagli
    Seleziona Gwolle Guestbook	
    Gwolle Guestbook
    Disattiva | Impostazioni
    Gwolle Guestbook non è solo un altro libro degli ospiti per WordPress. L'obiettivo è fornire un modo semplice e leggero per integrare un libro degli ospiti nel tuo sito basato su WordPress. Non usare la sezione 'commenti' in modo sbagliato - installare Gwolle Guestbook vuol dire avere un vero e proprio libro degli ospiti.
    
    Versione 2.6.3 | Di Marcel Pol | Visualizza i dettagli
    Seleziona Importatore RSS	
    Importatore RSS
    Disattiva
    Importa articoli da un feed RSS.
    
    Versione 0.2 | Di wordpressdotorg | Visualizza i dettagli
    Seleziona Importatore Tumblr	
    Importatore Tumblr
    Disattiva
    Importa articoli da un blog di Tumblr
    
    Versione 0.8 | Di wordpressdotorg | Visualizza i dettagli
    Seleziona Intuitive Custom Post Order	
    Intuitive Custom Post Order
    Disattiva
    Intuitively, Order Items( Posts, Pages, ,Custom Post Types, Custom Taxonomies, Sites ) using a Drag and Drop Sortable JavaScript.
    
    Versione 3.1.1 | Di hijiri | Visualizza i dettagli
    Seleziona KIA Subtitle	
    KIA Subtitle
    Impostazioni | Disattiva
    Aggiunge un campo per il sottotitolo all'editor degli Articoli di WordPress
    
    Versione 1.6.8 | Di Kathy Darling | Visualizza i dettagli | Fai una donazione
    Seleziona PHP code snippets (Insert PHP)	
    PHP code snippets (Insert PHP)
    Disattiva
    Run PHP code inserted into WordPress posts and pages. An easy, clean and easy way to add code snippets to your site. You do not need to edit the functions.php file of your theme again!
    
    Versione 2.0.6 | Di Will Bontrager Software, LLC , Webcraftic | Visualizza i dettagli
    Seleziona Post Thumbnail From Url	
    Post Thumbnail From Url
    Settings | Disattiva
    Post Thumbnail From URL is a plugin to import images using a public URL straight in your media library from the featured Image metabox in post edit page
    
    Versione 1.0 | Di Michele Settembre | Visualizza i dettagli
    Seleziona Prevent XSS Vulnerability	
    Prevent XSS Vulnerability
    Settings | Disattiva
    Allow you to make your site prevent from the XSS Vulnerability.
    
    Versione 0.1 | Di Sami Ahmed Siddiqui | Visualizza i dettagli
    Seleziona Responsive Lightbox & Gallery	
    Responsive Lightbox & Gallery
    Settings | Disattiva | Add-ons
    Responsive Lightbox & Gallery allows users to create galleries and view larger versions of images, galleries and videos in a lightbox (overlay) effect optimized for mobile devices.
    
    Versione 2.0.5 | Di dFactory | Visualizza i dettagli | Support
    Seleziona RSS Feed Icon	
    RSS Feed Icon
    Settings | Disattiva
    Easily add the RSS feed icon in any place of your website. It will be responsive and compatible with all major browsers. It will work with any theme!
    
    Versione 2.23 | Di Space X-Chimp | Visualizza i dettagli |  Donate
    Seleziona Rss Post Importer	
    Rss Post Importer
    Settings | Disattiva
    This plugin lets you set up an import posts from one or several rss-feeds and save them as posts on your site, simple and flexible.
    
    Versione 2.5.2 | Di feedsapi | Visualizza i dettagli
    Seleziona Search Exclude	
    Search Exclude
    Disattiva
    Hide any page or post from the WordPress search results by checking off the checkbox.
    
    Versione 1.2.2 | Di Roman Pronskiy | Visualizza i dettagli
    Seleziona Set All First Images As Featured	
    Set All First Images As Featured
    Disattiva | Settings
    Sets the first image of your posts, pages or custom post types as the featured image.
    
    Versione 1.2.2 | Di Lucy Tomás | Visualizza i dettagli
    Seleziona Silverlight Media Player for WordPress	
    Silverlight Media Player for WordPress
    Disattiva
    A plugin for WordPress to host a Silverlight media player for regular or IIS Smooth Streaming video playback.
    
    Versione 1.1.1 | Di Tim Heuer | Visualizza i dettagli
    Seleziona SyntaxHighlighter Evolved	
    SyntaxHighlighter Evolved
    Disattiva | Impostazioni
    Easily post syntax-highlighted code to your site without having to modify the code at all. Uses Alex Gorbatchev's SyntaxHighlighter. TIP: Don't use the Visual editor if you don't want your code mangled. TinyMCE will "clean up" your HTML.
    
    Versione 3.2.1 | Di Alex Mills (Viper007Bond) | Visualizza i dettagli
    Seleziona TinyMCE Advanced	
    TinyMCE Advanced
    Parametri | Disattiva
    Abilita le caratteristiche avanzate ed i plugin in TinyMCE, l'editor visuale in WordPress.
    
    Versione 4.8.0 | Di Andrew Ozz | Visualizza i dettagli
    Seleziona User Access Shortcodes	
    User Access Shortcodes
    Disattiva
    "The most simple way of controlling who sees what in your posts/pages". This plugin adds a button to your post editor, allowing you to restrict content to logged in users only (or guests) with a simple shortcode. Find help and information on our support site.
    
    Versione 2.1.1 | Di WP Darko | Visualizza i dettagli
    Seleziona Visitors Traffic Real Time Statistics Free	
    Visitors Traffic Real Time Statistics Free
    Disattiva
    Hits counter that shows analytical numbers of your WordPress site visitors and hits. Dashboard | Upgrade to pro.
    
    Versione 1.6 | Di wp-buy | Visualizza i dettagli
    You are running visitors traffic free. To get more features, you can upgrade now or dismiss this message
    Seleziona Visual Editor Custom Buttons	
    Visual Editor Custom Buttons
    Disattiva
    Create custom buttons in WordPress Visual Editor.
    
    Versione 1.5.2.2 | Di Ola Eborn | Visualizza i dettagli
    Seleziona WonderPlugin Gallery	
    WonderPlugin Gallery
    Disattiva
    WordPress Photo Video Gallery Plugin
    
    Versione 11.4 | Di Magic Hills Pty Ltd | Visita il sito del plugin
    Seleziona WordPress Popular Posts	
    WordPress Popular Posts
    Disattiva | Impostazioni
    A highly customizable widget that displays the most popular posts on your blog.
    
    Versione 4.1.2 | Di Hector Cabrera | Visualizza i dettagli
    Seleziona Worth The Read	
    Worth The Read
    Disattiva
    Adds read length progress bar to single posts and pages, as well as an optional reading time commitment label to post titles.
    
    Versione 1.4 | Di Well Done Marketing | Visualizza i dettagli
    Seleziona WP Avatar Utente	
    WP Avatar Utente
    Disattiva | Impostazioni
    Usa qualsiasi immagine dalla Libreria di WordPress come un avatar utente personalizzato. Aggiungi il tuo avatar di default.
    
    Versione 2.1.5 | Di flippercode | Visualizza i dettagli | Forum di supporto
    Seleziona WP Content Copy Protection & No Right Click	
    WP Content Copy Protection & No Right Click
    Disattiva | Impostazioni
    This wp plugin protect the posts content from being copied by any other web site author , you dont want your content to spread without your permission!!
    
    Versione 1.6.2 | Di wp-buy | Visualizza i dettagli
    You are running WP Content Copy Protection & No Right Click (free). To get more features, you can Upgrade Now.
    Seleziona WP Custom Login Page Logo	
    WP Custom Login Page Logo
    Settings | Disattiva
    Customize the admin logo on /wp-admin login page.
    
    Versione 1.4.8.3 | Di Lars Ortlepp | Visualizza i dettagli
    Seleziona WP Maintenance Mode	
    WP Maintenance Mode
    Impotazioni | Disattiva
    Adds a splash page to your site that lets visitors know your site is down for maintenance. It's perfect for a coming soon page.
    
    Versione 2.2.1 | Di Designmodo | Visualizza i dettagli
    Seleziona WP-PostViews	
    WP-PostViews
    Disattiva
    Enables you to display how many times a post/page had been viewed.
    
    Versione 1.75 | Di Lester 'GaMerZ' Chan | Visualizza i dettagli
    Seleziona Yet Another Related Posts Plugin	
    Yet Another Related Posts Plugin
    Disattiva | Impostazioni
    Adds related posts to your site and in RSS feeds, based on a powerful, customizable algorithm.
    
    Versione 4.4 | Di Adknowledge | Visualizza i dettagli
    Seleziona Yoast SEO	
    Yoast SEO
    FAQ | Supporto Premium | Impostazioni | Disattiva
    La prima vera soluzione SEO tutto-in-uno per WordPress, compresa l’analisi dei contenuti su ogni pagina, sitemap XML e molto altro.
    
    Versione 8.1.2 | Di Team Yoast | Visualizza i dettagli
    • Salve,
      ho realizzato da circa un anno una sito di ecommerce per un amico utilizzando workpress e woocommerce.
      Il frontend va veloce e non da problemi, però il backend è sempre molto lento.
      Parliamo di circa 4 secondi a pagina come caricamento, per il login ci vogliono almeno 10 secondi.

      Tra le varie attività effettuate, ho disattivato uno ad uno tutti i plugin per verificare che non fosse uno di questi a rallentarlo. Ho dovuto togliere il plugin heartbeat perchè mi inchiodava tutto, addirittura arrivavo a tempi di caricamento di oltre 2 minuti.
      Ho installato query monitor e wp-sweep per monitorare e ottimizzare il db, ma con scari risultati.

      La cosa che mi fa un pò pensare, sono il numero di prodotti caricati, circa 4500, di cui molti variabili. Parliamo di un ecommerce di biciclette e componenti, quindi ci sono molte varianti.

      Quello che ho notato è che dopo aver importato i prodotti la prima volta, dal vecchio sito tramite WP ALL IMPORT, ha iniziato a rallentare di brutto, poi un pò alla volta l’ho velocizzato fino a questo limite. I personalmente avevo consigliati di inserirli da capo dato che molti erano anche vecchi e fuori mercato, ma come quasi tutti avranno contratato, i clienti non vogliono fare mai niente se devono muovere loro un dito.

      Come plugins ho installato solamente questi, tutti aggiornati all’ultima versione:
      Contact Form Builder
      Cookie Law Bar
      Easy Facebook Likebox
      Insert PHP
      MailPoet 2
      MailPoet WooCommerce Add-on
      Opening Hours
      Query Monitor
      Slimstat Analytics
      WooCommerce
      WooCommerce Category Accordion.
      WooCommerce Conditional Shipping and Payments
      WooCommerce Facebook Like Share Button
      WooCommerce PayPal Express Checkout Gateway
      WooCommerce Shortcodes
      WooCommerce Stripe Gateway
      WooSwipe
      WP Fastest Cache
      WP-Sweep
      YITH WooCommerce Quick View

      Questi sono i dati tecnici del sito:
      PHP
      version 7.1.8
      max_execution_time 300
      memory_limit 4096M
      Sovrascritto in fase di esecuzione da 2048M
      upload_max_filesize 50M
      post_max_size 55M

      Database
      server version 5.6.36
      client version 50012 (5.0.12)

      WordPress
      version 4.8.2
      WP_DEBUG false
      WP_DEBUG_DISPLAY true
      WP_DEBUG_LOG false
      SCRIPT_DEBUG false
      WP_CACHE true
      CONCATENATE_SCRIPTS true
      COMPRESS_SCRIPTS true
      COMPRESS_CSS true

      Il server è aruba, sul quale ho abilitato php 7.1 con le personalizzazioni per joomla che mi ha consigliato un amico, sinceramente non ho visto molti miglioramenti però.

      Quindi mi rivolgo a voi, nella speranza di un aiuto.

    • Salve, sto utilizzando wordpress per creare un sito web. Ho avuto la necessità di creare un form per registrare dei partecipanti a un corso, in una tabella creata in un database su php my admin.
      Ho creato un template dove ho incluso un file html. in questo file html ho creato il form sa visualizzare inserendo in “action” il file php che dovra essere eseguito all’invio dei dati tramite il tasto “invia”.
      Il problema che riscontro è che se vado a schiacciare invia, una volta inseriti i dati, wordpress mi apre un’altra pagina con la seguente scritta “ops questa pagina non si trova”. In poche parole wordpress per quanto ho capito io non mi interpreta il codice php se non è inserito in un template.
      qualcuno puo aiutarmi? ho provato tante soluzioni.
      Ad esempio se creo un altro template in un file php e inserisco il codice php inserito nel file “form.php” e vado a creare una pagina wordpress aggiungengole il template appena creato, il codice inserito viene interpretato e funziona tutto correttamente perche basta associare l’url di questa pagina wordpress in “action” nel form.html e i dati vengono inseriti correttamente nella tabella del database. Solo che in questo modo appena si schiaccia il tasto invia si viene indirizzati a una pagina diversa. Mentre io desidero che appena si schiaccia il tasto invia compaiono le finestre popup con la conferma se l’utente è stato inserito o meno sempre nella stessa pagina.
      TEMPLATE :
      <?php
      /* Template name: FORM INS DATI

      */

      get_header();
      include “form.html”;
      ?>
      FILE HTML(form.html)
      <!DOCTYPE html>
      <html lang=”it”>
      <head>
      <meta charset=”UTF-8″>
      <link href=”style.css” rel=”stylesheet” type=”text/css”>
      </head>

      <body>
      <form action=”form.php” method=”POST”>
      Nome:<br>
      <input type=”text” name=”nome”> <br>
      Cognome:<br>
      <input type=”text” name=”cognome”><br>
      Data di nascita (yy-mm-dd): <br>
      <input type=”text” name=”data di nascita”><br>
      Luogo di nascita: <br>
      <input type=”text” name=”luogo di nascita”><br>
      Codice Fiscale: <br>
      <input type=”text” name=”codice fiscale”><br>
      <button type=”submit”>invia</button>

      </form>
      </body>
      </html>

      FILE PHP (form.php)
      <?php

      include(‘conn_selez_db.php’);

      $nome = $POST[‘nome’];
      $cognome = $_POST[‘cognome’];
      $nascita = $_POST[‘data_di_nascita’];
      $città = $_POST[‘luogo_di_nascita’];
      $cod_fiscale = $_POST[‘codice_fiscale’];

      $query = “INSERT INTO persone_inserite
      (nome, cognome,data_di_nascita,luogo_di_nascita,codice_fiscale)
      VALUES
      (‘$nome’,’$cognome’, ‘$nascita’, ‘$città’, ‘$cod_fiscale’)”;

      if (mysqli_query($conn, $query)) {
      print “<script type=’text/javascript’>alert(‘Utente inserito’)</script>”;

      } else {
      $errore = mysqli_error($conn);
      print “<script type=’text/javascript’>alert(‘Errore: $errore’)</script>”;
      }

      ?>

    • Ciao ragazzi, sto seguendo questo tutorial [modificato perché informazione promozionale] per aggiungere una sezione portfolio a TwentyFourteen, ma ho alcuni dubbi sui file da creare.

      Le funzioni createCustomPostType, insertScripts e portfolioShortcode le vado a inserire in un file php che sarà il plugin di cui faccio l’upload in wordpress?

      Il seguente codice dove lo devo mettere invece?

      http://codepad.org/X0I3FmSx

      Grazie infinite!!

      • Questo topic è stato modificato 10 anni, 2 mesi fa da Cristiano Zanca.
      • Questo topic è stato modificato 10 anni, 2 mesi fa da Cristiano Zanca.
      • Questo topic è stato modificato 10 anni, 2 mesi fa da medariox.
    Moderator Cristiano Zanca

    (@cristianozanca)

    Puoi anche usare lo shortcode [jetpack_subscription_form] qui trovi informazioni in merito https://jetpack.me/support/subscriptions/

    Un consiglio: è meglio evitare in futuro di fare crossposting , così solo per netiquette 🙂

    • Questa risposta è stata modificata 10 anni, 3 mesi fa da Cristiano Zanca.
    • Questa risposta è stata modificata 10 anni, 3 mesi fa da Cristiano Zanca.

    Potresti creare nel tuo plugin un custom post type e le custom taxonomies che servono… dovresti leggere per questo step:

    https://codex.wordpress.org/Function_Reference/register_post_type
    https://codex.wordpress.org/Function_Reference/register_taxonomy

    Esiste però una vasta scelta di generatori – per esempio: generatewp.com

    Poi devi scrivi uno script che ti importa tutti o una parte dei dati in WordPress. Guarda prima qui:

    https://codex.wordpress.org/Function_Reference/wp_insert_post

    Spero che questo ti aiuta. Chiedi pure se hai dei dubbi.

    Cheers,
    Dennis.

Stai vedendo 11 risultati - da 1 a 11 (di 11 totali)