public function enqueue_current_post_modules_assets() {

		global $more, $post;

		if ( $this->is_current_post_flexible( $post, $more ) ) {
			$layouts = $this->get_current_post_layouts( $post );

			foreach ( $layouts as $layout ) {

				if ( ! isset( $layout['acf_fc_layout'] ) || empty( $layout['acf_fc_layout'] ) ) {
					continue;
				}

				// Enqueue assets.
				$this->enqueue_module_assets( $layout['acf_fc_layout'] );
			}
		}
	}
public function enqueue_current_post_modules_assets() {

		global $more, $post;

		if ( $this->is_current_post_flexible( $post, $more ) ) {
			$layouts = $this->get_current_post_layouts( $post );

			foreach ( $layouts as $layout ) {

				if ( ! isset( $layout['acf_fc_layout'] ) || empty( $layout['acf_fc_layout'] ) ) {
					continue;
				}

				// Enqueue assets.
				$this->enqueue_module_assets( $layout['acf_fc_layout'] );
			}
		}
	}
public function enqueue_current_post_modules_assets ( ) { global $ more , $ post ; if ( $ this -> is_current_post_flexible ( $ post , $ more ) ) { $ layouts = $ this -> get_current_post_layouts ( $ post ) ; foreach ( $ layouts as $ layout ) { if ( ! isset ( $ layout [ 'acf_fc_layout' ] ) || empty ( $ layout [ 'acf_fc_layout' ] ) ) { continue ; } // Enqueue assets. $ this -> enqueue_module_assets ( $ layout [ 'acf_fc_layout' ] ) ; } } }
Enqueue module assets on current page.
Enqueue module assets on current page .