Class ShrimpTest_Variant_Shortcode

Description

Located in /plugins/variant-shortcode.php (line 7)


	
			
Variable Summary
Method Summary
ShrimpTest_Variant_Shortcode ShrimpTest_Variant_Shortcode ( $shrimptest_instance)
void add_buttons ()
void add_id_to_shortcode ( $matches)
void add_tinymce_script ( $plugins)
void cleanup_experiments ( $meta_id,  $object_id,  $meta_key,  $meta_value)
void detection_filter ( $content)
void edit_helper ()
void process_detected_shortcode ( $args,  $content)
void register_button ( $buttons)
void setup_buttons ()
void shortcode_handler ( $args, [ $content = null])
Variables
mixed $detected_experiment_ids = array( ) (line 17)
mixed $experiment_ids_meta_key = '_shrimptest_shortcode_experiments' (line 16)
mixed $label = 'Shortcode' (line 9)
mixed $shortcode = 'ab' (line 14)
mixed $_programmatic = true (line 12)
Methods
Constructor ShrimpTest_Variant_Shortcode (line 19)
ShrimpTest_Variant_Shortcode ShrimpTest_Variant_Shortcode ( $shrimptest_instance)
  • $shrimptest_instance
add_buttons (line 230)

A/B button in the editor: some code based on Ratings Shorttags by

Joen Asmussen, GPL

void add_buttons ()
add_id_to_shortcode (line 66)
void add_id_to_shortcode ( $matches)
  • $matches
add_tinymce_script (line 251)
void add_tinymce_script ( $plugins)
  • $plugins
admin_add_variant_extra (line 183)
void admin_add_variant_extra ()
admin_script_and_style (line 190)
void admin_script_and_style ()
cleanup_experiments (line 163)
void cleanup_experiments ( $meta_id,  $object_id,  $meta_key,  $meta_value)
  • $meta_id
  • $object_id
  • $meta_key
  • $meta_value
detection_filter (line 43)
void detection_filter ( $content)
  • $content
edit_helper (line 211)
void edit_helper ()
process_detected_shortcode (line 91)
void process_detected_shortcode ( $args,  $content)
  • $args
  • $content
register_button (line 256)
void register_button ( $buttons)
  • $buttons
setup_buttons (line 261)
void setup_buttons ()
shortcode_handler (line 79)
void shortcode_handler ( $args, [ $content = null])
  • $args
  • $content

Documentation generated on Sat, 04 Sep 2010 21:42:48 -0400 by phpDocumentor 1.4.3