I just installed the dev version and get a 404 when trying to access /wp-admin/wp-sweep/admin.php
Sorry, I just forgot to change the plugin folder name. All good now.
How do I specify the terms?
I can do it directly within the plugin by adding:
if ( ! is_array( $parent_term_ids ) ) {
$parent_term_ids = array();
}
$ignore_term_ids = array(
'5344',);
$excluded_termids = array_merge( $default_term_ids, $parent_term_ids, $ignore_term_ids );
return apply_filters( 'wp_sweep_excluded_termids', $excluded_termids );
}
I know this is a bad idea because it’ll be overwritten once the plugin is updated. How would I tap into this using my functions.php?
Thanks,
Jason
Erm you have to use the filter API? https://developer.wordpress.org/reference/functions/add_filter/
add_filter( 'wp_sweep_excluded_termids', 'wp_sweep_excluded_termids' );
function wp_sweep_excluded_termids( $excluded_termids ) {
return array_merge( $excluded_termids, [ '5344' ] );
}