| @@ -10,10 +10,10 @@ | ||
| 10 | 10 | '<dt><code>[ap_title]</code></dt>' . |
| 11 | 11 | '<dd>' . \wp_kses( __( 'The post\'s title.', 'activitypub' ), array( 'code' => array() ) ) . '</dd>' . |
| 12 | 12 | '<dt><code>[ap_content apply_filters="yes"]</code></dt>' . |
| 13 | 13 | '<dd>' . \wp_kses( __( 'The post\'s content. With <code>apply_filters</code> you can decide if filters (<code>apply_filters( \'the_content\', $content )</code>) should be applied or not (default is <code>yes</code>). The values can be <code>yes</code> or <code>no</code>. <code>apply_filters</code> attribute is optional.', 'activitypub' ), array( 'code' => array() ) ) . '</dd>' . |
| 14 | - '<dt><code>[ap_excerpt lenght="400"]</code></dt>' . | |
| 15 | - '<dd>' . \wp_kses( __( 'The post\'s excerpt (default 400 chars). <code>length</code> attribute is optional.', 'activitypub' ), array( 'code' => array() ) ) . '</dd>' . | |
| 14 | + '<dt><code>[ap_excerpt length="400"]</code></dt>' . | |
| 15 | + '<dd>' . \wp_kses( __( 'The post\'s excerpt (uses <code>the_excerpt</code> if that is set). If no excerpt is provided, will truncate at <code>length</code> (optional, default = 400).', 'activitypub' ), array( 'code' => array() ) ) . '</dd>' . | |
| 16 | 16 | '<dt><code>[ap_permalink type="url"]</code></dt>' . |
| 17 | 17 | '<dd>' . \wp_kses( __( 'The post\'s permalink. <code>type</code> can be either: <code>url</code> or <code>html</code> (an <a /> tag). <code>type</code> attribute is optional.', 'activitypub' ), array( 'code' => array() ) ) . '</dd>' . |
| 18 | 18 | '<dt><code>[ap_shortlink type="url"]</code></dt>' . |
| 19 | 19 | '<dd>' . \wp_kses( __( 'The post\'s shortlink. <code>type</code> can be either <code>url</code> or <code>html</code> (an <a /> tag). I can recommend <a href="https://wordpress.org/plugins/hum/" target="_blank">Hum</a>, to prettify the Shortlinks. <code>type</code> attribute is optional.', 'activitypub' ), array( 'code' => array() ) ) . '</dd>' . |