Commit b5ab8cae authored by Kevin Cristiano's avatar Kevin Cristiano 🌎
Browse files

get the extension dir the CiviCRM way

parent 7fbb389d
......@@ -153,7 +153,8 @@ function tc_admin_register_tad_civicrm_styles() {
add_action( 'wp_print_styles', 'tc_register_tad_civicrm_styles', 110 );
function tc_register_tad_civicrm_styles() {
$tc_civi_css = (plugin_dir_url( __FILE__ ) . 'css/civicrm.css') ;
$tc_ext_url = CRM_Core_Resources::singleton()->getUrl('cc.tadpole.csshelper');
$tc_civi_css = ( $tc_ext_url . 'css/civicrm.css') ;
$tc_civi_css = apply_filters ( 'tc_civicss_override' , $tc_civi_css ) ;
wp_enqueue_style ('tad_civicrm', $tc_civi_css );
}
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment