-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_plugin_activation_handler_8php_source.html
98 lines (96 loc) · 31.8 KB
/
_plugin_activation_handler_8php_source.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>GravityView: PluginActivationHandler.php Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="custom-doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">GravityView
 <span id="projectnumber">2.17</span>
</div>
<div id="projectbrief">The best, easiest way to display Gravity Forms entries on your website.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_c18ef6374e5a604878aeced0c5671a4f.html">vendor_prefixed</a></li><li class="navelem"><a class="el" href="dir_86b19f5df6747de098149f7d19a9f494.html">gravitykit</a></li><li class="navelem"><a class="el" href="dir_cef91bdb3eb284f59d80e56ba3584b5f.html">foundation</a></li><li class="navelem"><a class="el" href="dir_43934aaf9842616eb4dc1cec03c6d866.html">src</a></li><li class="navelem"><a class="el" href="dir_36047124c3839adf58c648c6799bc451.html">WP</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">PluginActivationHandler.php</div> </div>
</div><!--header-->
<div class="contents">
<a href="_plugin_activation_handler_8php.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno"> 1</span> <?php<span class="comment"></span></div><div class="line"><a name="l00002"></a><span class="lineno"> 2</span> <span class="comment">/**</span></div><div class="line"><a name="l00003"></a><span class="lineno"> 3</span> <span class="comment"> * @license GPL-2.0-or-later</span></div><div class="line"><a name="l00004"></a><span class="lineno"> 4</span> <span class="comment"> *</span></div><div class="line"><a name="l00005"></a><span class="lineno"> 5</span> <span class="comment"> * Modified by gravityview on 13-January-2023 using Strauss.</span></div><div class="line"><a name="l00006"></a><span class="lineno"> 6</span> <span class="comment"> * @see https://github.com/BrianHenryIE/strauss</span></div><div class="line"><a name="l00007"></a><span class="lineno"> 7</span> <span class="comment"> */</span></div><div class="line"><a name="l00008"></a><span class="lineno"> 8</span> </div><div class="line"><a name="l00009"></a><span class="lineno"> 9</span> <span class="keyword">namespace </span><a class="code" href="namespace_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p.html">GravityKit\GravityView\Foundation\WP</a>;</div><div class="line"><a name="l00010"></a><span class="lineno"> 10</span> <span class="comment"></span></div><div class="line"><a name="l00011"></a><span class="lineno"> 11</span> <span class="comment">/**</span></div><div class="line"><a name="l00012"></a><span class="lineno"> 12</span> <span class="comment"> * This class is responsible for handling plugin activation and deactivation hooks.</span></div><div class="line"><a name="l00013"></a><span class="lineno"> 13</span> <span class="comment"> */</span></div><div class="line"><a name="l00014"></a><span class="lineno"><a class="line" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html"> 14</a></span> <span class="keyword">class </span><a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html">PluginActivationHandler</a> {</div><div class="line"><a name="l00015"></a><span class="lineno"><a class="line" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#abc148a734ef539e8aa8fe69aac109716"> 15</a></span>  <span class="keyword">const</span> <a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#abc148a734ef539e8aa8fe69aac109716">DB_OPTION_NAME</a> = <span class="stringliteral">'_gk_foundation_plugin_activations'</span>;</div><div class="line"><a name="l00016"></a><span class="lineno"> 16</span> <span class="comment"></span></div><div class="line"><a name="l00017"></a><span class="lineno"> 17</span> <span class="comment"> /**</span></div><div class="line"><a name="l00018"></a><span class="lineno"> 18</span> <span class="comment"> * Registers activation and deactivation hooks for the plugin.</span></div><div class="line"><a name="l00019"></a><span class="lineno"> 19</span> <span class="comment"> *</span></div><div class="line"><a name="l00020"></a><span class="lineno"> 20</span> <span class="comment"> * Note: this method should not be called inside a hook such as `init`, `plugins_loaded`, etc.</span></div><div class="line"><a name="l00021"></a><span class="lineno"> 21</span> <span class="comment"> *</span></div><div class="line"><a name="l00022"></a><span class="lineno"> 22</span> <span class="comment"> * @see https://developer.wordpress.org/reference/functions/register_activation_hook/#more-information</span></div><div class="line"><a name="l00023"></a><span class="lineno"> 23</span> <span class="comment"> *</span></div><div class="line"><a name="l00024"></a><span class="lineno"> 24</span> <span class="comment"> * @since 1.0.0</span></div><div class="line"><a name="l00025"></a><span class="lineno"> 25</span> <span class="comment"> *</span></div><div class="line"><a name="l00026"></a><span class="lineno"> 26</span> <span class="comment"> * @param string $plugin_file The filename of the plugin including the path.</span></div><div class="line"><a name="l00027"></a><span class="lineno"> 27</span> <span class="comment"> *</span></div><div class="line"><a name="l00028"></a><span class="lineno"> 28</span> <span class="comment"> * @return void</span></div><div class="line"><a name="l00029"></a><span class="lineno"> 29</span> <span class="comment"> */</span></div><div class="line"><a name="l00030"></a><span class="lineno"><a class="line" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a28c9a8a9b829f57ad846300884d7fc56"> 30</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a28c9a8a9b829f57ad846300884d7fc56">register_hooks</a>( $plugin_file ) {</div><div class="line"><a name="l00031"></a><span class="lineno"> 31</span>  $this-><a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a74ae89331578ab9ed1c3c038d6e3af5f">register_activation_hook</a>( $plugin_file );</div><div class="line"><a name="l00032"></a><span class="lineno"> 32</span>  $this-><a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a931fe7ccc9070afd4b0af1d104e735d7">register_deactivation_hook</a>( $plugin_file );</div><div class="line"><a name="l00033"></a><span class="lineno"> 33</span>  }</div><div class="line"><a name="l00034"></a><span class="lineno"> 34</span> <span class="comment"></span></div><div class="line"><a name="l00035"></a><span class="lineno"> 35</span> <span class="comment"> /**</span></div><div class="line"><a name="l00036"></a><span class="lineno"> 36</span> <span class="comment"> * Registers activation hook for the plugin.</span></div><div class="line"><a name="l00037"></a><span class="lineno"> 37</span> <span class="comment"> *</span></div><div class="line"><a name="l00038"></a><span class="lineno"> 38</span> <span class="comment"> * Note: this method should not be called inside a hook such as `init`, `plugins_loaded`, etc.</span></div><div class="line"><a name="l00039"></a><span class="lineno"> 39</span> <span class="comment"> *</span></div><div class="line"><a name="l00040"></a><span class="lineno"> 40</span> <span class="comment"> * @see https://developer.wordpress.org/reference/functions/register_activation_hook/#more-information</span></div><div class="line"><a name="l00041"></a><span class="lineno"> 41</span> <span class="comment"> *</span></div><div class="line"><a name="l00042"></a><span class="lineno"> 42</span> <span class="comment"> * @since 1.0.0</span></div><div class="line"><a name="l00043"></a><span class="lineno"> 43</span> <span class="comment"> *</span></div><div class="line"><a name="l00044"></a><span class="lineno"> 44</span> <span class="comment"> * @param string $plugin_file The filename of the plugin including the path.</span></div><div class="line"><a name="l00045"></a><span class="lineno"> 45</span> <span class="comment"> *</span></div><div class="line"><a name="l00046"></a><span class="lineno"> 46</span> <span class="comment"> * @return void</span></div><div class="line"><a name="l00047"></a><span class="lineno"> 47</span> <span class="comment"> */</span></div><div class="line"><a name="l00048"></a><span class="lineno"><a class="line" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a74ae89331578ab9ed1c3c038d6e3af5f"> 48</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a74ae89331578ab9ed1c3c038d6e3af5f">register_activation_hook</a>( $plugin_file ) {</div><div class="line"><a name="l00049"></a><span class="lineno"> 49</span>  <span class="keywordflow">if</span> ( has_action( <span class="stringliteral">'activate_'</span> . $plugin_file ) ) {</div><div class="line"><a name="l00050"></a><span class="lineno"> 50</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00051"></a><span class="lineno"> 51</span>  }</div><div class="line"><a name="l00052"></a><span class="lineno"> 52</span> </div><div class="line"><a name="l00053"></a><span class="lineno"> 53</span>  $callback = <span class="keyword">function</span> () use ( $plugin_file ) {</div><div class="line"><a name="l00054"></a><span class="lineno"> 54</span>  $plugin_activations = $this-><a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#ad9b664b58ab7e5a7720226141ff993ee">get_plugin_activations</a>();</div><div class="line"><a name="l00055"></a><span class="lineno"> 55</span> </div><div class="line"><a name="l00056"></a><span class="lineno"> 56</span>  <span class="keywordflow">if</span> ( ! in_array( $plugin_file, $plugin_activations, <span class="keyword">true</span> ) ) {</div><div class="line"><a name="l00057"></a><span class="lineno"> 57</span>  $plugin_activations[] = $plugin_file;</div><div class="line"><a name="l00058"></a><span class="lineno"> 58</span> </div><div class="line"><a name="l00059"></a><span class="lineno"> 59</span>  $this-><a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a06773284ffdff200d64d12d898f00d66">save_plugin_activations</a>( $plugin_activations );</div><div class="line"><a name="l00060"></a><span class="lineno"> 60</span>  }</div><div class="line"><a name="l00061"></a><span class="lineno"> 61</span>  };</div><div class="line"><a name="l00062"></a><span class="lineno"> 62</span> </div><div class="line"><a name="l00063"></a><span class="lineno"> 63</span>  <a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a74ae89331578ab9ed1c3c038d6e3af5f">register_activation_hook</a>( $plugin_file, $callback );</div><div class="line"><a name="l00064"></a><span class="lineno"> 64</span>  }</div><div class="line"><a name="l00065"></a><span class="lineno"> 65</span> <span class="comment"></span></div><div class="line"><a name="l00066"></a><span class="lineno"> 66</span> <span class="comment"> /**</span></div><div class="line"><a name="l00067"></a><span class="lineno"> 67</span> <span class="comment"> * Registers deactivation hook for the plugin.</span></div><div class="line"><a name="l00068"></a><span class="lineno"> 68</span> <span class="comment"> *</span></div><div class="line"><a name="l00069"></a><span class="lineno"> 69</span> <span class="comment"> * Note: this method should not be called inside a hook such as `init`, `plugins_loaded`, etc.</span></div><div class="line"><a name="l00070"></a><span class="lineno"> 70</span> <span class="comment"> *</span></div><div class="line"><a name="l00071"></a><span class="lineno"> 71</span> <span class="comment"> * @see https://developer.wordpress.org/reference/functions/register_activation_hook/#more-information</span></div><div class="line"><a name="l00072"></a><span class="lineno"> 72</span> <span class="comment"> *</span></div><div class="line"><a name="l00073"></a><span class="lineno"> 73</span> <span class="comment"> * @since 1.0.0</span></div><div class="line"><a name="l00074"></a><span class="lineno"> 74</span> <span class="comment"> *</span></div><div class="line"><a name="l00075"></a><span class="lineno"> 75</span> <span class="comment"> * @param string $plugin_file The filename of the plugin including the path.</span></div><div class="line"><a name="l00076"></a><span class="lineno"> 76</span> <span class="comment"> *</span></div><div class="line"><a name="l00077"></a><span class="lineno"> 77</span> <span class="comment"> * @return void</span></div><div class="line"><a name="l00078"></a><span class="lineno"> 78</span> <span class="comment"> */</span></div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a931fe7ccc9070afd4b0af1d104e735d7"> 79</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a931fe7ccc9070afd4b0af1d104e735d7">register_deactivation_hook</a>( $plugin_file ) {</div><div class="line"><a name="l00080"></a><span class="lineno"> 80</span>  <span class="keywordflow">if</span> ( has_action( <span class="stringliteral">'deactivate_'</span> . $plugin_file ) ) {</div><div class="line"><a name="l00081"></a><span class="lineno"> 81</span>  <span class="keywordflow">return</span>;</div><div class="line"><a name="l00082"></a><span class="lineno"> 82</span>  }</div><div class="line"><a name="l00083"></a><span class="lineno"> 83</span> </div><div class="line"><a name="l00084"></a><span class="lineno"> 84</span>  $callback = <span class="keyword">function</span> () use ( $plugin_file ) {</div><div class="line"><a name="l00085"></a><span class="lineno"> 85</span>  do_action( <span class="stringliteral">'gk/foundation/plugin_deactivated'</span>, $plugin_file );</div><div class="line"><a name="l00086"></a><span class="lineno"> 86</span>  };</div><div class="line"><a name="l00087"></a><span class="lineno"> 87</span> </div><div class="line"><a name="l00088"></a><span class="lineno"> 88</span>  <a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a931fe7ccc9070afd4b0af1d104e735d7">register_deactivation_hook</a>( $plugin_file, $callback );</div><div class="line"><a name="l00089"></a><span class="lineno"> 89</span>  }</div><div class="line"><a name="l00090"></a><span class="lineno"> 90</span> <span class="comment"></span></div><div class="line"><a name="l00091"></a><span class="lineno"> 91</span> <span class="comment"> /**</span></div><div class="line"><a name="l00092"></a><span class="lineno"> 92</span> <span class="comment"> * Saves activated plugins.</span></div><div class="line"><a name="l00093"></a><span class="lineno"> 93</span> <span class="comment"> *</span></div><div class="line"><a name="l00094"></a><span class="lineno"> 94</span> <span class="comment"> * @since 1.0.0</span></div><div class="line"><a name="l00095"></a><span class="lineno"> 95</span> <span class="comment"> *</span></div><div class="line"><a name="l00096"></a><span class="lineno"> 96</span> <span class="comment"> * @param array $plugin_activations Activated plugins.</span></div><div class="line"><a name="l00097"></a><span class="lineno"> 97</span> <span class="comment"> *</span></div><div class="line"><a name="l00098"></a><span class="lineno"> 98</span> <span class="comment"> * @return void</span></div><div class="line"><a name="l00099"></a><span class="lineno"> 99</span> <span class="comment"> */</span></div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a06773284ffdff200d64d12d898f00d66"> 100</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a06773284ffdff200d64d12d898f00d66">save_plugin_activations</a>( $plugin_activations ) {</div><div class="line"><a name="l00101"></a><span class="lineno"> 101</span>  <span class="keywordflow">if</span> ( ! empty( $plugin_activations ) ) {</div><div class="line"><a name="l00102"></a><span class="lineno"> 102</span>  update_option( self::DB_OPTION_NAME, $plugin_activations );</div><div class="line"><a name="l00103"></a><span class="lineno"> 103</span>  } <span class="keywordflow">else</span> {</div><div class="line"><a name="l00104"></a><span class="lineno"> 104</span>  delete_option( self::DB_OPTION_NAME );</div><div class="line"><a name="l00105"></a><span class="lineno"> 105</span>  }</div><div class="line"><a name="l00106"></a><span class="lineno"> 106</span>  }</div><div class="line"><a name="l00107"></a><span class="lineno"> 107</span> <span class="comment"></span></div><div class="line"><a name="l00108"></a><span class="lineno"> 108</span> <span class="comment"> /**</span></div><div class="line"><a name="l00109"></a><span class="lineno"> 109</span> <span class="comment"> * Returns activated plugins.</span></div><div class="line"><a name="l00110"></a><span class="lineno"> 110</span> <span class="comment"> *</span></div><div class="line"><a name="l00111"></a><span class="lineno"> 111</span> <span class="comment"> * @since 1.0.0</span></div><div class="line"><a name="l00112"></a><span class="lineno"> 112</span> <span class="comment"> *</span></div><div class="line"><a name="l00113"></a><span class="lineno"> 113</span> <span class="comment"> * @return array</span></div><div class="line"><a name="l00114"></a><span class="lineno"> 114</span> <span class="comment"> */</span></div><div class="line"><a name="l00115"></a><span class="lineno"><a class="line" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#ad9b664b58ab7e5a7720226141ff993ee"> 115</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#ad9b664b58ab7e5a7720226141ff993ee">get_plugin_activations</a>() {</div><div class="line"><a name="l00116"></a><span class="lineno"> 116</span>  <span class="keywordflow">return</span> get_option( self::DB_OPTION_NAME, [] );</div><div class="line"><a name="l00117"></a><span class="lineno"> 117</span>  }</div><div class="line"><a name="l00118"></a><span class="lineno"> 118</span> <span class="comment"></span></div><div class="line"><a name="l00119"></a><span class="lineno"> 119</span> <span class="comment"> /**</span></div><div class="line"><a name="l00120"></a><span class="lineno"> 120</span> <span class="comment"> * Runs on plugin activation.</span></div><div class="line"><a name="l00121"></a><span class="lineno"> 121</span> <span class="comment"> *</span></div><div class="line"><a name="l00122"></a><span class="lineno"> 122</span> <span class="comment"> * This method can be called inside `init` and other WP hooks.</span></div><div class="line"><a name="l00123"></a><span class="lineno"> 123</span> <span class="comment"> *</span></div><div class="line"><a name="l00124"></a><span class="lineno"> 124</span> <span class="comment"> * @since 1.0.0</span></div><div class="line"><a name="l00125"></a><span class="lineno"> 125</span> <span class="comment"> *</span></div><div class="line"><a name="l00126"></a><span class="lineno"> 126</span> <span class="comment"> * @return void</span></div><div class="line"><a name="l00127"></a><span class="lineno"> 127</span> <span class="comment"> */</span></div><div class="line"><a name="l00128"></a><span class="lineno"><a class="line" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a17df0adf2e7052e25719fe490eb51179"> 128</a></span>  <span class="keyword">public</span> <span class="keyword">function</span> <a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a17df0adf2e7052e25719fe490eb51179">fire_activation_hook</a>() {</div><div class="line"><a name="l00129"></a><span class="lineno"> 129</span>  $plugin_activations = $this-><a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#ad9b664b58ab7e5a7720226141ff993ee">get_plugin_activations</a>();</div><div class="line"><a name="l00130"></a><span class="lineno"> 130</span> </div><div class="line"><a name="l00131"></a><span class="lineno"> 131</span>  <span class="keywordflow">foreach</span> ( $plugin_activations as <a class="code" href="namespace_g_v.html#a83018d9153d17d91fbcf3bc10158d34f">$i</a> => $plugin_file ) {</div><div class="line"><a name="l00132"></a><span class="lineno"> 132</span>  do_action( <span class="stringliteral">'gk/foundation/plugin_activated'</span>, $plugin_file );</div><div class="line"><a name="l00133"></a><span class="lineno"> 133</span> </div><div class="line"><a name="l00134"></a><span class="lineno"> 134</span>  unset( $plugin_activations[ <a class="code" href="namespace_g_v.html#a83018d9153d17d91fbcf3bc10158d34f">$i</a> ] );</div><div class="line"><a name="l00135"></a><span class="lineno"> 135</span>  }</div><div class="line"><a name="l00136"></a><span class="lineno"> 136</span> </div><div class="line"><a name="l00137"></a><span class="lineno"> 137</span>  $this-><a class="code" href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a06773284ffdff200d64d12d898f00d66">save_plugin_activations</a>( $plugin_activations );</div><div class="line"><a name="l00138"></a><span class="lineno"> 138</span>  }</div><div class="line"><a name="l00139"></a><span class="lineno"> 139</span> }</div><div class="ttc" id="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler_html_a931fe7ccc9070afd4b0af1d104e735d7"><div class="ttname"><a href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a931fe7ccc9070afd4b0af1d104e735d7">GravityKit\GravityView\Foundation\WP\PluginActivationHandler\register_deactivation_hook</a></div><div class="ttdeci">register_deactivation_hook( $plugin_file)</div><div class="ttdoc">Registers deactivation hook for the plugin. </div><div class="ttdef"><b>Definition:</b> <a href="_plugin_activation_handler_8php_source.html#l00079">PluginActivationHandler.php:79</a></div></div>
<div class="ttc" id="namespace_g_v_html_a83018d9153d17d91fbcf3bc10158d34f"><div class="ttname"><a href="namespace_g_v.html#a83018d9153d17d91fbcf3bc10158d34f">GV\$i</a></div><div class="ttdeci">$i</div><div class="ttdef"><b>Definition:</b> <a href="class-gv-settings-plugin_8php_source.html#l00491">class-gv-settings-plugin.php:491</a></div></div>
<div class="ttc" id="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler_html_abc148a734ef539e8aa8fe69aac109716"><div class="ttname"><a href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#abc148a734ef539e8aa8fe69aac109716">GravityKit\GravityView\Foundation\WP\PluginActivationHandler\DB_OPTION_NAME</a></div><div class="ttdeci">const DB_OPTION_NAME</div><div class="ttdef"><b>Definition:</b> <a href="_plugin_activation_handler_8php_source.html#l00015">PluginActivationHandler.php:15</a></div></div>
<div class="ttc" id="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler_html_a17df0adf2e7052e25719fe490eb51179"><div class="ttname"><a href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a17df0adf2e7052e25719fe490eb51179">GravityKit\GravityView\Foundation\WP\PluginActivationHandler\fire_activation_hook</a></div><div class="ttdeci">fire_activation_hook()</div><div class="ttdoc">Runs on plugin activation. </div><div class="ttdef"><b>Definition:</b> <a href="_plugin_activation_handler_8php_source.html#l00128">PluginActivationHandler.php:128</a></div></div>
<div class="ttc" id="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler_html_ad9b664b58ab7e5a7720226141ff993ee"><div class="ttname"><a href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#ad9b664b58ab7e5a7720226141ff993ee">GravityKit\GravityView\Foundation\WP\PluginActivationHandler\get_plugin_activations</a></div><div class="ttdeci">get_plugin_activations()</div><div class="ttdoc">Returns activated plugins. </div><div class="ttdef"><b>Definition:</b> <a href="_plugin_activation_handler_8php_source.html#l00115">PluginActivationHandler.php:115</a></div></div>
<div class="ttc" id="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler_html_a28c9a8a9b829f57ad846300884d7fc56"><div class="ttname"><a href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a28c9a8a9b829f57ad846300884d7fc56">GravityKit\GravityView\Foundation\WP\PluginActivationHandler\register_hooks</a></div><div class="ttdeci">register_hooks( $plugin_file)</div><div class="ttdoc">Registers activation and deactivation hooks for the plugin. </div><div class="ttdef"><b>Definition:</b> <a href="_plugin_activation_handler_8php_source.html#l00030">PluginActivationHandler.php:30</a></div></div>
<div class="ttc" id="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler_html_a06773284ffdff200d64d12d898f00d66"><div class="ttname"><a href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a06773284ffdff200d64d12d898f00d66">GravityKit\GravityView\Foundation\WP\PluginActivationHandler\save_plugin_activations</a></div><div class="ttdeci">save_plugin_activations( $plugin_activations)</div><div class="ttdoc">Saves activated plugins. </div><div class="ttdef"><b>Definition:</b> <a href="_plugin_activation_handler_8php_source.html#l00100">PluginActivationHandler.php:100</a></div></div>
<div class="ttc" id="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler_html_a74ae89331578ab9ed1c3c038d6e3af5f"><div class="ttname"><a href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html#a74ae89331578ab9ed1c3c038d6e3af5f">GravityKit\GravityView\Foundation\WP\PluginActivationHandler\register_activation_hook</a></div><div class="ttdeci">register_activation_hook( $plugin_file)</div><div class="ttdoc">Registers activation hook for the plugin. </div><div class="ttdef"><b>Definition:</b> <a href="_plugin_activation_handler_8php_source.html#l00048">PluginActivationHandler.php:48</a></div></div>
<div class="ttc" id="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler_html"><div class="ttname"><a href="class_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_1_1_plugin_activation_handler.html">GravityKit\GravityView\Foundation\WP\PluginActivationHandler</a></div><div class="ttdoc">This class is responsible for handling plugin activation and deactivation hooks. </div><div class="ttdef"><b>Definition:</b> <a href="_plugin_activation_handler_8php_source.html#l00014">PluginActivationHandler.php:14</a></div></div>
<div class="ttc" id="namespace_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p_html"><div class="ttname"><a href="namespace_gravity_kit_1_1_gravity_view_1_1_foundation_1_1_w_p.html">GravityKit\GravityView\Foundation\WP</a></div><div class="ttdoc">GPL-2.0-or-later </div><div class="ttdef"><b>Definition:</b> <a href="_admin_menu_8php_source.html#l00009">AdminMenu.php:9</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/>
<script type="text/javascript">
jQuery( document ).ready( function( $ ) {
$( 'a.anchor[id^=_filters],a.anchor[id^=_actions]' ).each( function() {
$( this )
.text('#')
.attr( 'href', function() {
return '#' + $( this ).attr( 'id' );
}).prependTo( $( this ).parent('dt' ).next('dd') );
});
});
</script>
</body>
</html>