Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Multiple activation hooks
register_activation_hook( __FILE__, 'your_post_type_registration_function', 10 );
register_activation_hook( __FILE__, 'your_plugin_activation_function', 15 );
register_activation_hook( __FILE__, 'flush_rewrite_rules', 20 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.