Load Redux Google fonts in the Block Editor

Question

I was looking for a way to Load Redux Google fonts in the Block Editor. the below solution worked for me so I thought I would share it. Maybe it be more efficient?

add_action( "enqueue_block_editor_assets", "my_enque_block_editor_assets" );

function my_enque_block_editor_assets() {

if(class_exists('ReduxFrameworkInstances')) {

   $redux = ReduxFrameworkInstances::get_instance( "option-name" );    
   $redux->_enqueue_output();

};  

}
0
, , Kieran 12 months 0 Answers 66 views 0

Leave an answer