{"id":21931317,"url":"https://github.com/themeplate/enqueue","last_synced_at":"2026-03-01T15:01:36.353Z","repository":{"id":57068284,"uuid":"250947814","full_name":"ThemePlate/Enqueue","owner":"ThemePlate","description":"Helper for registered dependencies","archived":false,"fork":false,"pushed_at":"2025-05-15T11:38:01.000Z","size":88,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"develop","last_synced_at":"2025-09-26T03:50:39.094Z","etag":null,"topics":["wordpress","wordpress-scripts","wordpress-styles"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ThemePlate.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-03-29T03:45:20.000Z","updated_at":"2025-05-15T11:38:04.000Z","dependencies_parsed_at":"2025-03-02T05:23:48.911Z","dependency_job_id":null,"html_url":"https://github.com/ThemePlate/Enqueue","commit_stats":null,"previous_names":[],"tags_count":12,"template":false,"template_full_name":null,"purl":"pkg:github/ThemePlate/Enqueue","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThemePlate%2FEnqueue","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThemePlate%2FEnqueue/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThemePlate%2FEnqueue/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThemePlate%2FEnqueue/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ThemePlate","download_url":"https://codeload.github.com/ThemePlate/Enqueue/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ThemePlate%2FEnqueue/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29973097,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-01T14:44:57.896Z","status":"ssl_error","status_checked_at":"2026-03-01T14:43:27.662Z","response_time":124,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["wordpress","wordpress-scripts","wordpress-styles"],"created_at":"2024-11-28T23:13:31.351Z","updated_at":"2026-03-01T15:01:36.321Z","avatar_url":"https://github.com/ThemePlate.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ThemePlate Enqueue\n\n## Usage\n\n```php\n\nuse ThemePlate\\Enqueue;\n\nfunction theme_scripts() {\n\twp_enqueue_script( 'main-script', 'PATH_TO_MAIN_JS' );\n\twp_script_add_data( 'main-script', 'async', true );\n\twp_enqueue_script( 'extra-script', 'PATH_TO_EXTRA_JS' );\n\twp_script_add_data( 'extra-script', 'defer', true );\n\n\twp_enqueue_script( 'jquery-slim', 'https://code.jquery.com/jquery-3.5.1.slim.min.js', array(), '3.5.1', true );\n\twp_script_add_data( 'jquery-slim', 'integrity', 'sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj' );\n\twp_script_add_data( 'jquery-slim', 'crossorigin', 'anonymous' );\n\twp_enqueue_style( 'bootstrap', 'https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css', array(), '4.5.2' );\n\twp_style_add_data( 'bootstrap', 'integrity', 'sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z' );\n\twp_style_add_data( 'bootstrap', 'crossorigin', 'anonymous' );\n\n\twp_register_style( 'slick-carousel', 'https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.css', array(), '1.9.0', 'all' );\n\twp_register_script( 'slick-carousel', 'https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.9.0/slick.min.js', array(), '1.9.0', true );\n}\nadd_action( 'wp_enqueue_scripts', 'theme_scripts' );\n\nadd_action( 'init', array( Enqueue::class, 'init' ) );\n\n// Set to the wanted insert position; default is 10\nEnqueue::$priority = 20;\n\n// In templates before calling the get_header()\nEnqueue::script( 'slick-carousel' );\nEnqueue::style( 'slick-carousel' );\nEnqueue::script(\n\t'popper',\n\t'https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js',\n\tarray(\n\t\t'integrity' =\u003e 'sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN',\n\t\t'crossorigin' =\u003e 'anonymous',\n\t)\n);\n```\n\n### Enqueue::script( $handle, $src, $data )\n### Enqueue::style( $handle, $src, $data )\n- **$handle** *(string)(Required)* Registered handle or unique name if *$src* is provided\n- **$src** *(string)(Optional)* Full URL or path relative to the WordPress root directory\n- **$data** *(array)(Optional)* Custom metadata to be added to the registered asset\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemeplate%2Fenqueue","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthemeplate%2Fenqueue","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthemeplate%2Fenqueue/lists"}