Support » Plugins » Use of admin_head question

  • a few questions:
    first, is there a version (or a way) to make it replace and not add the information? second, is this synax:

    function greentheme_gethead() {
    echo "
    (head information here)
    add_action ( 'admin_head', 'greentheme_gethead');

    Third, when I add a <?php include (ABSPATH . ‘wp-content/plugins/green-theme/head.php’) ?> it errors out at the include. Can I not php include in a synax like that? I can’t directly put the full text of admin_header.php because it errors out there too. what am i doing wrong?

Viewing 6 replies - 1 through 6 (of 6 total)
  • There is a remove_action(), though I’m not sure how it would work (if at all) on admin_head. What are you trying to “replace”?

    Don’t see anything in your code that would keep it from working.

    When adding the include, is that with or without the <?php and ?> tags?

    I need to change the location of the css.

    Yep, with the <?php and ?>

    it just shows up as text without the <?php and ?>

    okay.. i was wrong, it doesnt error out with the whole string (<?php include (ABSPATH . 'wp-content/plugins/green-theme/head.php') ?>), it just adds it like a comment, it does not execute it. sorry.

    any ideas anyone?

    NVM. figured this out as well.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Use of admin_head question’ is closed to new replies.