Wordpress css JavaScript 複数回読み込み対処法

結論: wp_enqueue_styleを利用する。

<?php wp_enqueue_style( $handle, $src, $deps, $ver, $media ); ?>

CSS や JavaScript の読み込みを header.php 等に記載すると
プラグインのファイルと重複したり、同じファイルを何回も呼び込む可能性があります。
それで、ファイルを登録及び読み込みキューに追加し、アクションフックで読み込むことが 推奨されています。
そのための関数です。

functions.phpに記載します。

function hogehoge() {
        wp_enqueue_style( 'Font_Awesome', 'https://use.fontawesome.com/releases/v5.6.1/css/all.css' );
        wp_enqueue_style( 'Bootstrap_css', get_template_directory_uri() . '/css/bootstrap.min.css' );
        wp_enqueue_style( 'Style', get_template_directory_uri() . '/style.css' );
        wp_enqueue_script( 'jQuery', get_template_directory_uri() . '/js/jquery-3.3.1.min.js', array(), '3.3.1', true );
        wp_enqueue_script( 'Tether', get_template_directory_uri() . '/js/popper.min.js', array(), '1.0.0', true );
        wp_enqueue_script( 'Bootstrap', get_template_directory_uri() . '/js/bootstrap.min.js', array(), '1.0.0', true );
        wp_enqueue_script( 'MDB', get_template_directory_uri() . '/js/mdb.min.js', array(), '1.0.0', true );

        }
        // wp_enqueue_script() は適切なタイミングでページにリンク
        //add_actionは第2引数にコールバック
add_action( 'wp_enqueue_scripts', 'hogehoge' );

<?php add_action( $hook, $function_to_add, $priority, $accepted_args ); ?>

第1引数:アクション名、特定のタイミングで呼び出される。 タイミングは決められてる。 こんな感じ

muplugins_loaded /en  must-use プラグインが読み込まれた後
registered_taxonomy /en    カテゴリー、post_tag など用
registered_post_type /en  投稿、固定ページなど用
plugins_loaded /en 有効なプラグインとプラガブルな関数が読み込まれた後
sanitize_comment_cookies /en  HTTPリクエストからCookieが読み取られた後に実行する

第2引数:コールバックなので引数が用意されてから呼び出される。上記ではhogehogeを呼び出している。