wp-queue icon indicating copy to clipboard operation
wp-queue copied to clipboard

How to prevent conflicts with another plugin?

Open tangrufus opened this issue 6 years ago • 2 comments

Specifically when installed via composer, should we (as plugin authors):

  • change namespace (via imposter / mozart)?

  • change table names so other plugins won't try to drop my tables?

$this->jobs_table     = $this->database->prefix . 'queue_jobs' . '_my_plugin';
$this->failures_table = $this->database->prefix . 'queue_failures' . '_my_plugin';
  • change filter and hook names?
apply_filters( 'my_plugin_wp_queue_cron_time_limit', 20 );
apply_filters( 'my_plugin_wp_queue_connections', $connections );
apply_filters( 'my_plugin_wp_queue_cron_memory_exceeded', $return );

tangrufus avatar Jan 28 '18 10:01 tangrufus