meta_key _eg_gallery_data update problem
-
The system cannot update the meta_key _eg_gallery_data after I added the following code:
//Purpose: redirect to the post after user created the gallery / album.
function publishGallery( $ID, $post ) {
require_once ABSPATH . ‘wp-load.php’;
require_once ABSPATH . ‘wp-settings.php’;
global $wpdb;
$post = get_post( $ID );
$url = get_permalink($ID);if ( $post->post_date != $post->post_modified )
wp_save_post_revision ($ID);wp_redirect($url);
exit();}
add_action(‘publish_envira’, ‘publishGallery’);
add_action(‘publish_envira_album’, ‘publishGallery’);Do you have any suggestion to solve this problem?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘meta_key _eg_gallery_data update problem’ is closed to new replies.