{"id":6419,"date":"2016-02-05T18:08:31","date_gmt":"2016-02-05T23:08:31","guid":{"rendered":"https:\/\/themespress.ca\/?p=6419"},"modified":"2022-09-17T09:41:31","modified_gmt":"2022-09-17T13:41:31","slug":"wp_register_style-css-wordpress-plugin","status":"publish","type":"post","link":"https:\/\/themespress.ca\/en\/wp_register_style-css-wordpress-plugin\/","title":{"rendered":"Using wp_register_style CSS Admin for a WordPress Plugin"},"content":{"rendered":"<div class=\"wpb-content-wrapper\"><div class=\"vc_row wpb_row vc_row-fluid\"><div class=\"wpb_column vc_column_container vc_col-sm-12\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\n\t<div class=\"wpb_text_column wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<p>It can prove very efficient to stylize your WordPress plugin content and make it as visually enjoyable as possible.<\/p>\n<p>It is possible, in your plugin&#8217;s index or ou settings.php file, to include the functions.php path to add your functions.<\/p>\n\n\t\t<\/div>\n\t<\/div>\n<h2 style=\"text-align: left\" class=\"vc_custom_heading vc_do_custom_heading vc_custom_1642527600203\" >Using wp_register_style for a plugin<\/h2><div id=\"ts-enlighterjs-container-9934786\" class=\"ts-enlighterjs-container-single-enabled  \" style=\"width: 100%;  margin-top: 0px; margin-bottom: 0px;\" data-enlighter-doubleclick=\"true\" data-enlighter-windowbutton=\"true\" data-enlighter-windowtext=\"New Window\" data-enlighter-rawbutton=\"true\" data-enlighter-rawtext=\"RAW Code\" data-enlighter-infobutton=\"false\" data-enlighter-infotext=\"EnlighterJS\" data-enlighter-indent=\"2\"><pre id=\"ts-enlighterjs-pre-9934786\" class=\"\" style=\"white-space: pre-wrap; height: 100%; margin: 0; padding: 0;\" data-enlighter-language=\"php\" data-enlighter-theme=\"enlighter\" data-enlighter-group=\"\" data-enlighter-title=\"\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"1\" data-enlighter-highlight=\"\">\/\/ Include path functions\ninclude( plugin_dir_path( __FILE__ ) . &#039;functions.php&#039;);<\/pre><\/div>\n\t<div class=\"wpb_text_column wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<p>Below you&#8217;ll find a function that triggers <strong>wp_register_style<\/strong> and <strong>wp_enqueue_style<\/strong>. Create a new CSS folder and a new CSS file called admin.css.<\/p>\n<p>In your functions.php file<\/p>\n\n\t\t<\/div>\n\t<\/div>\n<div id=\"ts-enlighterjs-container-8925115\" class=\"ts-enlighterjs-container-single-enabled  \" style=\"width: 100%;  margin-top: 0px; margin-bottom: 0px;\" data-enlighter-doubleclick=\"true\" data-enlighter-windowbutton=\"true\" data-enlighter-windowtext=\"New Window\" data-enlighter-rawbutton=\"true\" data-enlighter-rawtext=\"RAW Code\" data-enlighter-infobutton=\"false\" data-enlighter-infotext=\"EnlighterJS\" data-enlighter-indent=\"2\"><pre id=\"ts-enlighterjs-pre-8925115\" class=\"\" style=\"white-space: pre-wrap; height: 100%; margin: 0; padding: 0;\" data-enlighter-language=\"standard\" data-enlighter-theme=\"enlighter\" data-enlighter-group=\"\" data-enlighter-title=\"\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"1\" data-enlighter-highlight=\"\">\/\/ Load styles css for admin plugin\nfunction via_custom_wp_admin_style() {\n        wp_register_style( &#039;custom_wp_admin_css&#039;, plugins_url(&#039;\/css\/admin.css&#039;, __FILE__), false, &#039;1.0.0&#039;, &#039;all&#039;);\n        wp_enqueue_style( &#039;custom_wp_admin_css&#039; );\n}\nadd_action( &#039;admin_enqueue_scripts&#039;, &#039;via_custom_wp_admin_style&#039; );<\/pre><\/div>\n\t<div class=\"wpb_text_column wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<p>As you can see, the path is done so that it finds the folder and differs from typical paths. This time we&#8217;ll use <strong>plugins_url<\/strong> instead of <strong>get_stylesheet_directory_uri()<\/strong>.<\/p>\n<p>For example, let&#8217;s inject some Javascript in the plugin by using wp_enqueue_script. You first need to create a new JS folder in the plugin&#8217;s root and then a JS folder and PHP folder in your shortcodes.php file. Load it with the following function in your functions.php file<\/p>\n\n\t\t<\/div>\n\t<\/div>\n<div id=\"ts-enlighterjs-container-9289871\" class=\"ts-enlighterjs-container-single-enabled  \" style=\"width: 100%;  margin-top: 0px; margin-bottom: 0px;\" data-enlighter-doubleclick=\"true\" data-enlighter-windowbutton=\"true\" data-enlighter-windowtext=\"New Window\" data-enlighter-rawbutton=\"true\" data-enlighter-rawtext=\"RAW Code\" data-enlighter-infobutton=\"false\" data-enlighter-infotext=\"EnlighterJS\" data-enlighter-indent=\"2\"><pre id=\"ts-enlighterjs-pre-9289871\" class=\"\" style=\"white-space: pre-wrap; height: 100%; margin: 0; padding: 0;\" data-enlighter-language=\"standard\" data-enlighter-theme=\"enlighter\" data-enlighter-group=\"\" data-enlighter-title=\"\" data-enlighter-linenumbers=\"true\" data-enlighter-lineoffset=\"1\" data-enlighter-highlight=\"\">\/\/ Load javascript for admin plugin\nfunction via_shortcodes_script() {\n\twp_enqueue_script(&#039;shortcodes&#039;,plugins_url( &#039;\/js\/shortcodes.js&#039; , __FILE__ ),\n\tarray( &#039;scriptaculous&#039; )\n\t);\n}\nadd_action( &#039;wp_enqueue_scripts&#039;, &#039;via_shortcodes_script&#039; );<\/pre><\/div>\n\t<div class=\"wpb_text_column wpb_content_element\" >\n\t\t<div class=\"wpb_wrapper\">\n\t\t\t<p>And you&#8217;re almost done! Simply add your DIV tags so you can easily style your plugin.<\/p>\n<p>Learn more about <a title=\"Codex wp_register_style\" href=\"http:\/\/codex.wordpress.org\/Function_Reference\/wp_register_style\" target=\"_blank\" rel=\"noopener\">wp_register_style<\/a><\/p>\n\n\t\t<\/div>\n\t<\/div>\n<\/div><\/div><\/div><\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"It can prove very efficient to stylize your WordPress plugin content and make it as visually enjoyable as possible. It is possible, in your plugin's index or ou settings.php file,<div class=\"read-more\"><a class=\"btn button-secondary\" href=\"https:\/\/themespress.ca\/en\/wp_register_style-css-wordpress-plugin\/\">Read More<\/a><\/div>","protected":false},"author":81,"featured_media":4490,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[283],"tags":[318],"class_list":["post-6419","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","tag-functions"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.10 - aioseo.com -->\n\t<meta name=\"description\" content=\"Share the post &quot;Using wp_register_style CSS Admin for a WordPress Plugin&quot; Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky It can prove very efficient to stylize your WordPress plugin content and make it as visually enjoyable as possible. It is possible, in your plugin\u2019s index or ou settings.php file, to include the functions.php path\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Daniel\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/themespress.ca\/en\/wp_register_style-css-wordpress-plugin\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.10\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Themespress - Des tutoriels et ressources WordPress\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Using wp_register_style CSS Admin for a WordPress Plugin - Themespress\" \/>\n\t\t<meta property=\"og:description\" content=\"Share the post &quot;Using wp_register_style CSS Admin for a WordPress Plugin&quot; Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky It can prove very efficient to stylize your WordPress plugin content and make it as visually enjoyable as possible. It is possible, in your plugin\u2019s index or ou settings.php file, to include the functions.php path\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/themespress.ca\/en\/wp_register_style-css-wordpress-plugin\/\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2016-02-05T23:08:31-05:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-09-17T13:41:31-04:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Using wp_register_style CSS Admin for a WordPress Plugin - Themespress\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Share the post &quot;Using wp_register_style CSS Admin for a WordPress Plugin&quot; Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky It can prove very efficient to stylize your WordPress plugin content and make it as visually enjoyable as possible. It is possible, in your plugin\u2019s index or ou settings.php file, to include the functions.php path\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"BlogPosting\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/wp_register_style-css-wordpress-plugin\\\/#blogposting\",\"name\":\"Using wp_register_style CSS Admin for a WordPress Plugin - Themespress\",\"headline\":\"Using wp_register_style CSS Admin for a WordPress Plugin\",\"author\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/author\\\/daniel\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#organization\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/themespress.ca\\\/wp-content\\\/uploads\\\/2017\\\/02\\\/wsi-imageoptim-photodune-3774172-wordpress-xs.jpg\",\"width\":597,\"height\":334},\"datePublished\":\"2016-02-05T18:08:31-05:00\",\"dateModified\":\"2022-09-17T09:41:31-04:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/wp_register_style-css-wordpress-plugin\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/wp_register_style-css-wordpress-plugin\\\/#webpage\"},\"articleSection\":\"Tutorials, Functions\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/wp_register_style-css-wordpress-plugin\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#listItem\",\"position\":1,\"name\":\"Accueil\",\"item\":\"https:\\\/\\\/themespress.ca\\\/en\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/categorie\\\/tutorials\\\/#listItem\",\"name\":\"Tutorials\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/categorie\\\/tutorials\\\/#listItem\",\"position\":2,\"name\":\"Tutorials\",\"item\":\"https:\\\/\\\/themespress.ca\\\/en\\\/categorie\\\/tutorials\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/wp_register_style-css-wordpress-plugin\\\/#listItem\",\"name\":\"Using wp_register_style CSS Admin for a WordPress Plugin\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#listItem\",\"name\":\"Accueil\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/wp_register_style-css-wordpress-plugin\\\/#listItem\",\"position\":3,\"name\":\"Using wp_register_style CSS Admin for a WordPress Plugin\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/categorie\\\/tutorials\\\/#listItem\",\"name\":\"Tutorials\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#organization\",\"name\":\"Themespress\",\"description\":\"Des tutoriels et ressources WordPress\",\"url\":\"https:\\\/\\\/themespress.ca\\\/en\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/author\\\/daniel\\\/#author\",\"url\":\"https:\\\/\\\/themespress.ca\\\/en\\\/author\\\/daniel\\\/\",\"name\":\"Daniel\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/wp_register_style-css-wordpress-plugin\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93cd2188e40b3289d305e88acb676eb8b84078e50e06f4eb38a0152903b34c9d?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Daniel\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/wp_register_style-css-wordpress-plugin\\\/#webpage\",\"url\":\"https:\\\/\\\/themespress.ca\\\/en\\\/wp_register_style-css-wordpress-plugin\\\/\",\"name\":\"Using wp_register_style CSS Admin for a WordPress Plugin - Themespress\",\"description\":\"Share the post \\\"Using wp_register_style CSS Admin for a WordPress Plugin\\\" Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky It can prove very efficient to stylize your WordPress plugin content and make it as visually enjoyable as possible. It is possible, in your plugin\\u2019s index or ou settings.php file, to include the functions.php path\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/wp_register_style-css-wordpress-plugin\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/author\\\/daniel\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/author\\\/daniel\\\/#author\"},\"image\":{\"@type\":\"ImageObject\",\"url\":\"https:\\\/\\\/themespress.ca\\\/wp-content\\\/uploads\\\/2017\\\/02\\\/wsi-imageoptim-photodune-3774172-wordpress-xs.jpg\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/wp_register_style-css-wordpress-plugin\\\/#mainImage\",\"width\":597,\"height\":334},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/wp_register_style-css-wordpress-plugin\\\/#mainImage\"},\"datePublished\":\"2016-02-05T18:08:31-05:00\",\"dateModified\":\"2022-09-17T09:41:31-04:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#website\",\"url\":\"https:\\\/\\\/themespress.ca\\\/en\\\/\",\"name\":\"Themespress\",\"description\":\"Des tutoriels et ressources WordPress\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/themespress.ca\\\/en\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Using wp_register_style CSS Admin for a WordPress Plugin - Themespress","description":"Share the post \"Using wp_register_style CSS Admin for a WordPress Plugin\" Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky It can prove very efficient to stylize your WordPress plugin content and make it as visually enjoyable as possible. It is possible, in your plugin\u2019s index or ou settings.php file, to include the functions.php path","canonical_url":"https:\/\/themespress.ca\/en\/wp_register_style-css-wordpress-plugin\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"BlogPosting","@id":"https:\/\/themespress.ca\/en\/wp_register_style-css-wordpress-plugin\/#blogposting","name":"Using wp_register_style CSS Admin for a WordPress Plugin - Themespress","headline":"Using wp_register_style CSS Admin for a WordPress Plugin","author":{"@id":"https:\/\/themespress.ca\/en\/author\/daniel\/#author"},"publisher":{"@id":"https:\/\/themespress.ca\/en\/#organization"},"image":{"@type":"ImageObject","url":"https:\/\/themespress.ca\/wp-content\/uploads\/2017\/02\/wsi-imageoptim-photodune-3774172-wordpress-xs.jpg","width":597,"height":334},"datePublished":"2016-02-05T18:08:31-05:00","dateModified":"2022-09-17T09:41:31-04:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/themespress.ca\/en\/wp_register_style-css-wordpress-plugin\/#webpage"},"isPartOf":{"@id":"https:\/\/themespress.ca\/en\/wp_register_style-css-wordpress-plugin\/#webpage"},"articleSection":"Tutorials, Functions"},{"@type":"BreadcrumbList","@id":"https:\/\/themespress.ca\/en\/wp_register_style-css-wordpress-plugin\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/#listItem","position":1,"name":"Accueil","item":"https:\/\/themespress.ca\/en\/","nextItem":{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/categorie\/tutorials\/#listItem","name":"Tutorials"}},{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/categorie\/tutorials\/#listItem","position":2,"name":"Tutorials","item":"https:\/\/themespress.ca\/en\/categorie\/tutorials\/","nextItem":{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/wp_register_style-css-wordpress-plugin\/#listItem","name":"Using wp_register_style CSS Admin for a WordPress Plugin"},"previousItem":{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/#listItem","name":"Accueil"}},{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/wp_register_style-css-wordpress-plugin\/#listItem","position":3,"name":"Using wp_register_style CSS Admin for a WordPress Plugin","previousItem":{"@type":"ListItem","@id":"https:\/\/themespress.ca\/en\/categorie\/tutorials\/#listItem","name":"Tutorials"}}]},{"@type":"Organization","@id":"https:\/\/themespress.ca\/en\/#organization","name":"Themespress","description":"Des tutoriels et ressources WordPress","url":"https:\/\/themespress.ca\/en\/"},{"@type":"Person","@id":"https:\/\/themespress.ca\/en\/author\/daniel\/#author","url":"https:\/\/themespress.ca\/en\/author\/daniel\/","name":"Daniel","image":{"@type":"ImageObject","@id":"https:\/\/themespress.ca\/en\/wp_register_style-css-wordpress-plugin\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/93cd2188e40b3289d305e88acb676eb8b84078e50e06f4eb38a0152903b34c9d?s=96&d=mm&r=g","width":96,"height":96,"caption":"Daniel"}},{"@type":"WebPage","@id":"https:\/\/themespress.ca\/en\/wp_register_style-css-wordpress-plugin\/#webpage","url":"https:\/\/themespress.ca\/en\/wp_register_style-css-wordpress-plugin\/","name":"Using wp_register_style CSS Admin for a WordPress Plugin - Themespress","description":"Share the post \"Using wp_register_style CSS Admin for a WordPress Plugin\" Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky It can prove very efficient to stylize your WordPress plugin content and make it as visually enjoyable as possible. It is possible, in your plugin\u2019s index or ou settings.php file, to include the functions.php path","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/themespress.ca\/en\/#website"},"breadcrumb":{"@id":"https:\/\/themespress.ca\/en\/wp_register_style-css-wordpress-plugin\/#breadcrumblist"},"author":{"@id":"https:\/\/themespress.ca\/en\/author\/daniel\/#author"},"creator":{"@id":"https:\/\/themespress.ca\/en\/author\/daniel\/#author"},"image":{"@type":"ImageObject","url":"https:\/\/themespress.ca\/wp-content\/uploads\/2017\/02\/wsi-imageoptim-photodune-3774172-wordpress-xs.jpg","@id":"https:\/\/themespress.ca\/en\/wp_register_style-css-wordpress-plugin\/#mainImage","width":597,"height":334},"primaryImageOfPage":{"@id":"https:\/\/themespress.ca\/en\/wp_register_style-css-wordpress-plugin\/#mainImage"},"datePublished":"2016-02-05T18:08:31-05:00","dateModified":"2022-09-17T09:41:31-04:00"},{"@type":"WebSite","@id":"https:\/\/themespress.ca\/en\/#website","url":"https:\/\/themespress.ca\/en\/","name":"Themespress","description":"Des tutoriels et ressources WordPress","inLanguage":"en-US","publisher":{"@id":"https:\/\/themespress.ca\/en\/#organization"}}]},"og:locale":"en_US","og:site_name":"Themespress - Des tutoriels et ressources WordPress","og:type":"article","og:title":"Using wp_register_style CSS Admin for a WordPress Plugin - Themespress","og:description":"Share the post &quot;Using wp_register_style CSS Admin for a WordPress Plugin&quot; Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky It can prove very efficient to stylize your WordPress plugin content and make it as visually enjoyable as possible. It is possible, in your plugin\u2019s index or ou settings.php file, to include the functions.php path","og:url":"https:\/\/themespress.ca\/en\/wp_register_style-css-wordpress-plugin\/","article:published_time":"2016-02-05T23:08:31-05:00","article:modified_time":"2022-09-17T13:41:31-04:00","twitter:card":"summary","twitter:title":"Using wp_register_style CSS Admin for a WordPress Plugin - Themespress","twitter:description":"Share the post &quot;Using wp_register_style CSS Admin for a WordPress Plugin&quot; Facebook LinkedIn Twitter Partager... E-mail Ajouter aux favoris Bluesky It can prove very efficient to stylize your WordPress plugin content and make it as visually enjoyable as possible. It is possible, in your plugin\u2019s index or ou settings.php file, to include the functions.php path"},"aioseo_meta_data":{"post_id":"6419","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"","isEnabled":true},"graphs":[],"defaultGraph":"Article","defaultPostTypeGraph":""},"schema_type":"default","schema_type_options":"{\"article\":{\"articleType\":\"BlogPosting\"},\"course\":{\"name\":\"\",\"description\":\"\",\"provider\":\"\"},\"faq\":{\"pages\":[]},\"product\":{\"reviews\":[]},\"recipe\":{\"ingredients\":[],\"instructions\":[],\"keywords\":[]},\"software\":{\"reviews\":[],\"operatingSystems\":[]},\"webPage\":{\"webPageType\":\"WebPage\"},\"blockGraphs\":[]}","pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2022-09-17 13:29:31","updated":"2025-06-08 02:13:06","seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/themespress.ca\/en\/\" title=\"Accueil\">Accueil<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/themespress.ca\/en\/categorie\/tutorials\/\" title=\"Tutorials\">Tutorials<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tUsing wp_register_style CSS Admin for a WordPress Plugin\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Accueil","link":"https:\/\/themespress.ca\/en\/"},{"label":"Tutorials","link":"https:\/\/themespress.ca\/en\/categorie\/tutorials\/"},{"label":"Using wp_register_style CSS Admin for a WordPress Plugin","link":"https:\/\/themespress.ca\/en\/wp_register_style-css-wordpress-plugin\/"}],"_links":{"self":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts\/6419","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/users\/81"}],"replies":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/comments?post=6419"}],"version-history":[{"count":0,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/posts\/6419\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/media\/4490"}],"wp:attachment":[{"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/media?parent=6419"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/categories?post=6419"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/themespress.ca\/en\/wp-json\/wp\/v2\/tags?post=6419"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}