where should i put the .php file on wordpress?

global $wpdb;
    $wpdb->insert('wp_outbox', array( 
		'pesan' => $pesan, 
		'notujuan' => $notujuan,
			), 
	array( 
		'%s', 
		'%d')
		); 
}

hii. i’m gonna trying to insert some data to database but it doesn’t work. after write the code where should i put that .php file ? it is in the article/page (on wordpress). or in the htdocs/wordpress ?

thanks for the answer and sorry for my bad english

Read more here: where should i put the .php file on wordpress?

Leave a Reply

Your email address will not be published. Required fields are marked *