link_target_meta_box()

 

File: wp-admin/includes/meta-boxes.php

function link_target_meta_box( $link ) {

	?>
<fieldset><legend class="screen-reader-text"><span><?php _e( 'Target' ); ?></span></legend>
<p><label for="link_target_blank" class="selectit">
<input id="link_target_blank" type="radio" name="link_target" value="_blank" <?php echo ( isset( $link->link_target ) && ( $link->link_target == '_blank' ) ? 'checked="checked"' : '' ); ?> />
	<?php _e( '<code>_blank</code> &mdash; new window or tab.' ); ?></label></p>
<p><label for="link_target_top" class="selectit">
<input id="link_target_top" type="radio" name="link_target" value="_top" <?php echo ( isset( $link->link_target ) && ( $link->link_target == '_top' ) ? 'checked="checked"' : '' ); ?> />
	<?php _e( '<code>_top</code> &mdash; current window or tab, with no frames.' ); ?></label></p>
<p><label for="link_target_none" class="selectit">
<input id="link_target_none" type="radio" name="link_target" value="" <?php echo ( isset( $link->link_target ) && ( $link->link_target == '' ) ? 'checked="checked"' : '' ); ?> />
	<?php _e( '<code>_none</code> &mdash; same window or tab.' ); ?></label></p>
</fieldset>
<p><?php _e( 'Choose the target frame for your link.' ); ?></p>
	<?php
}

参数:link_target_meta_box( object $link )

$link

(object)
(Required)

{acontent3}

You must log in before being able to contribute a note or feedback.

81.13% (129) 次Baidu访问
3.77% (6) 次Google访问
14.47% (23) 次Sogou访问
0.63% (1) 次sm访问
  • 蜘蛛:Baidu,129次,更新时间:2019-05-05 12:01:06
  • 蜘蛛:Google,6次,更新时间:2019-05-16 09:14:19
  • 蜘蛛:Sogou,23次,更新时间:2019-05-26 05:30:42
  • 蜘蛛:sm,1次,更新时间:2019-05-03 17:30:34

参与评论