У меня есть пример плагина:
class ProductCustomPostType {
function __construct() {
..
add_action( 'manage_posts_custom_column', array( $this, 'managePostCustomColumns' ) );
}
function managePostCustomColumns( $column_name ){
...
}
}
Мне нужно подключить функцию managePostCustomColumns из functions.php с действием add_filter.
Как я могу это сделать? Спасибо!