what is the use of /wp-includes/SimplePie?

It’s used by wordpress core for parsing RSS & Atom feeds. You probably know that wordpress puts all plugins and themes into the wp-content folder so that you don’t need to worry about any other folders/files. Leave it be.

Insert data in database using form

The two variables $name and $email are unknown inside the function. You have to make them globally available inside it by changing global $wpdb into global $wpdb, $name, $email: require_once(‘../../../wp-load.php’); /** * After t f’s comment about putting global before the variable. * Not necessary (http://php.net/manual/en/language.variables.scope.php) */ global $name = $_POST[‘name’]; global $email = $_POST[’email’]; … Read more

How to define composite keys with dbDelta()

The problem If the table already exists your code will still try to execute the following queries: 1) ALTER TABLE wp_voicemail_call CHANGE COLUMN user_id user_id BIGINT(9) UNSIGNED NOT NULL 2) ALTER TABLE wp_voicemail_call CHANGE COLUMN call_id call_id BIGINT(9) UNSIGNED NOT NULL 3) ALTER TABLE wp_voicemail_call CHANGE COLUMN opened opened BOOL DEFAULT 0 NOT NULL 4) … Read more

Lost the `wp_options` table: what’s the best way to restore the site?

Uh oh, that’s an important table. You might have lost a bunch of options, but you can still repair the database. WordPress allows a repair mode, which you can repair the database. Open the wp-config.php file using FTP, and add this line before the ABSPATH: define( ‘WP_ALLOW_REPAIR’, true ); now head over to : http://yourdomain.com/wp-admin/maint/repair.php … Read more