New WP installation due to language issues

There isn’t really a Swedish version of WordPress although they do provide a convenient package that has the language files already loaded. The only differences from the core (English) distribution are the folder wp-content/languages, the variable $wp_local_package=”sv_SE”; set in wp-includes/version.php, the localized readme.html file and the wp-config-sample.php file. So yes, you should be safe uploading … Read more

Moving site made easier

For the specific settings you are asking about you can hardcode the values into your wp-config.php file(s): define(‘WP_HOME’,’http://example.com’); define(‘WP_SITEURL’,’http://example.com’); These values will be used and database values will be ignored and not editable in settings. Note that there are plenty more places that might store URLs, such as images in content and so on. There … Read more

How to make auto installer Plugin?

I found the solution: function rating_install(){ //Funcion que genera la instalacion del plugin global $wpdb; $table_name = $wpdb->prefix.”rating”; $create = “CRETA TABLE “.$table_name.” ( ” . “id INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY, ” . “url TINYTEXT NOT NULL, ” . “descripcion TINYTEXT NOT NULL ) “; $wpdb->query($create); /*require_once(ABSPATH.”wp-admin/includes/upgrade.php”); dbDelta($create);*/ } function rating_uninstall(){ … Read more

I can install my plugin in localhost but not in my server

Use this code register_activation_hook(__FILE__, ‘rating_install’); register_deactivation_hook(__FILE__, ‘rating_uninstall’); function rating_install(){ global $wpdb; $table_name = $wpdb->prefix.”rating”; $create = “CRETA TABLE “.$table_name.” ( ” . “id INT( 11 ) NOT NULL AUTO_INCREMENT PRIMARY KEY, ” . “url TINYTEXT NOT NULL, ” . “descripcion TINYTEXT NOT NULL ) “; $wpdb->query($create); } function rating_uninstall(){ global $wpdb; $table_name = $wpdb->prefix.”rating”; $drop … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)