Professional Documents
Culture Documents
Filter Hook Trong Wordpress
Filter Hook Trong Wordpress
Filter Hook Trong Wordpress
Gi s bn mun vit bi v du lch chn hn, Nhng gi bn khng mun dung ci Posts
c sn ca wordpress m bn mun vit 1 ci mi c tn l 'Time Travelers' chng hn
tnh nng ging ht nh Posts ca wordpress !!!!! Bn c th iu chnh dashboard ca
wordpress bng cch gi hook nh bn di
Chng ta c th to 1 custom post nh bn di theo 3 bc c bn
+ vit 1 function : trong function ny s tr v 1 event no (nh vi d bn di l tr
v register_post_type( 'time_traveler', $args );
+ b ci event ny vo hook bng lnh add_action(name hook,function name) : v d
di l add_action( 'init', 'tutsplus_register_post_type' );
'new_item'
'view_item'
'description' => 'A post type used to provide information on Time Travelers.',
'public'
=> true,S
'show_ui'
=> true,
'supports'
=> array(
'title',
'editor',
'excerpt',
),
);
register_post_type( 'time_traveler', $args );
}
</pre>
https://code.tutsplus.com/tutorials/adding-custom-hooks-in-wordpress-custom-actions-cms-26454
vt_pipeline.v
vt_pipeline.v