Last active
December 12, 2015 00:08
-
-
Save alisspers/4681404 to your computer and use it in GitHub Desktop.
Visar exempel på använding av hooken edit_form_after_title i WP 3.5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
add_action( | |
'edit_form_after_title', | |
function() | |
{ | |
global $post; | |
if ( 'wg_slider' != $post->post_type ) | |
{ | |
// Vi vill bara visa hjälptexten vid redigering av vår CPT | |
return; | |
} | |
?> | |
<p> | |
<strong>OBS!</strong> | |
Lägg inte till bild i beskrivningen med "Add Media" utan | |
använd boxen till höger som heter "Featured Image". | |
</p> | |
<?php | |
} | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment