Skip to content

Commit ac360cc

Browse files
committed
removed activation hook
1 parent fffa64a commit ac360cc

File tree

1 file changed

+1
-17
lines changed

1 file changed

+1
-17
lines changed

wp-serverless-api.php

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -74,20 +74,4 @@ function build_db()
7474
/**
7575
* Build on Post Save
7676
*/
77-
add_action( 'save_post', 'build_db' );
78-
79-
/**
80-
* Build on Plugin Activation
81-
*/
82-
function wp_sls_api_activation_hook() {
83-
build_db();
84-
}
85-
86-
add_action( 'init', 'wp_sls_api_activation_hook' );
87-
88-
function wp_sls_api_install() {
89-
activation_hook();
90-
flush_rewrite_rules();
91-
}
92-
93-
register_activation_hook( __FILE__, 'wp_sls_api_install' );
77+
add_action( 'save_post', 'build_db' );

0 commit comments

Comments
 (0)