Exportació i importació del personalitzador

Descripció

Exportació i importació del personalitzador

The Customizer Export/Import plugin allows you to export or import your WordPress customizer settings from directly within the customizer interface! If your theme makes use of the WordPress customizer for its settings, this plugin is for you!

Please visit our blog for more info on the Customizer Export/Import plugin.

Nou! Opcions d’exportació

The Customizer Export/Import plugin previously only exported options saved as theme mods using the get_theme_mods function, but that is no more! The Customizer Export/Import plugin now exports settings saved as options as well!

Com funciona?

Exporting customizer settings is easy. Click the export button from within the customizer and a file will automatically begin downloading with your settings. Export files are named after your theme and can only be used to import settings for the theme or child theme that they came from. Export files contain a serialized dump of mods retrieved using the get_theme_mods function or customizer settings saved as options.

Importing customizer settings is just as easy. Choose the export file you would like to import, select whether you would like to download and import images (similar to importing posts), and finally, click the import button. Once your settings have been imported the page will refresh and your new design will be displayed.

Exportació d’opcions personalitzades

Developers can also have arbitrary options that aren’t part of the customizer exported by using the cei_export_option_keys filter. Those options can be exported and imported by adding your option key to the array of options that will be exported as shown below.

function my_export_option_keys( $keys ) {
    $keys[] = 'my_option_key';
    $keys[] = 'another_option_key';
    return $keys;
}

add_filter( 'cei_export_option_keys', 'my_export_option_keys' );

Problemes coneguts

Actualment, aquesta extensió només funciona per a temes actius, no per temes que es visualitzen prèviament amb l’extensió Theme Test Drive o la nova vista prèvia del tema del personalitzador.

Contribuïu!

Ens encantaria escoltar els vostres comentaris sobre com podem millorar l’extensió Customizer Export/Import, o millor encara, veure els desenvolupadors de temes contribuir activament! No dubteu a fer-nos saber si esteu interessats a contribuir, ja que amb molt de gust tindrem altres persones a bord.

L’extensió Customizer Export/Import està a disponible gràcies a Beaver Builder.

Captures

  • Secció d’exportació/importació del personalitzador.

Instal·lació

  1. Instal·leu l’extensió Customizer Export/Import mitjançant el directori d’extensions del WordPress o carregant els fitxers al vostre servidor a wp-content/plugins.

  2. Després d’activar-se, la funcionalitat d’exportació/importació estarà disponible com a secció separada del personalitzador del WordPress.

PMF

Visiteu el nostre blog per obtenir més informació sobre l’extensió d’exportació i importació del personalitzador.

Ressenyes

24 de juny de 2023
It wasn't working out of the box for me the first 4 attempts. So, I took a look at the parent's export.dat file and noticed like 7 empty spaces at the top of the file. So I deleted them and tried again and what do you know it worked...
Llegiu totes les 103 ressenyes

Col·laboradors i desenvolupadors

«Exportació i importació del personalitzador» és programari de codi obert. La següent gent ha col·laborat en aquesta extensió.

Col·laboradors

“Exportació i importació del personalitzador” s'ha traduït a 24 configuracions regionals. Gràcies als traductos per les seves aportacions.

Tradueix “Exportació i importació del personalitzador” a la teva llengua.

Interessats en el desenvolupament?

Navegueu pel codi, baixeu-vos el repositori SVN, o subscriviu-vos al registre de desenvolupament per fisl de subscripció RSS.

Registre de canvis

Version 0.1

  • Versió inicial.

Version 0.2

  • S’ha afegit el filtre cei_export_option_keys per exportar opcions personalitzades.

Version 0.3

  • Les opcions del personalitzador desades com a opcions ara s’exporten i importen.

Version 0.5

  • S’ha corregit un problema amb les càrregues al WordPress 4.7.1.

Version 0.6

  • Provant una altra solució per al problema amb les càrregues al WordPress 4.7.1.

Version 0.7

  • Added support for exporting and importing custom CSS.

Version 0.8

  • Added support for option data that has an empty value.

Version 0.9

  • Allow options with widget or sidebar in their key to be exported.

Version 0.9.1

  • Fixed issue with slashes in plugin asset urls and S3. Props Huskynarr.

Version 0.9.4

  • Added callout for Assistant

Version 0.9.5

  • Fixed minor security issue

Version 0.9.6

  • Restrict uploads to users that can install plugins for better security.